| | |
| | | |
| | | for (int i = 0; i < contentNum; ++i) { |
| | | DEBUG("灯光项目 <%d> item %d, TTS %s", i, content[i].item, content[i].tts.c_str()); |
| | | for (int j = 0; j < content[i].process.size(); ++j) { |
| | | DEBUG("灯光过程解<%d> %d - %d", i, (content[i].process[j] >> 8) & 0xFF, content[i].process[j] & 0xFF); |
| | | } |
| | | for (int j = 0; j < content[i].solution.size(); ++j) { |
| | | DEBUG("灯光最终解<%d> %d - %d", i, (content[i].solution[j] >> 8) & 0xFF, content[i].solution[j] & 0xFF); |
| | | } |
| | | } |
| | | testing = true; |
| | | |
| | |
| | | for (int i = 0; i < content[question].process.size(); ++i) { |
| | | if (ReadCarStatus((content[question].process[i]>>8) & 0xFF) == content[question].process[i] & 0xFF) { |
| | | process.push_back(content[question].process[i]); |
| | | DEBUG("灯光操作过程解1<%d> %d - %d", question, (content[question].process[i]>>8) & 0xFF, content[question].process[i] & 0xFF); |
| | | } |
| | | } |
| | | |
| | |
| | | if (testing) { |
| | | for (int i = 0; i < content[question].process.size(); ++i) { |
| | | if (id == ((content[question].process[i] >> 8) & 0xFF) && value == (content[question].process[i] & 0xFF)) { |
| | | DEBUG("灯光操作过程解2<%d> %d - %d", question, (content[question].process[i]>>8) & 0xFF, content[question].process[i] & 0xFF); |
| | | if (process.size() == 0 || process.back() != content[question].process[i]) { |
| | | process.push_back(content[question].process[i]); |
| | | } |
| | |
| | | |
| | | for (int i = 0; i < content[question].solution.size(); ++i) { |
| | | if (ReadCarStatus((content[question].solution[i]>>8)&0xFF) != (content[question].solution[i] & 0xFF)) { |
| | | DEBUG("灯光确认不合格<%d> %d != %d", question, (content[question].solution[i]>>8) & 0xFF, content[question].solution[i] & 0xFF); |
| | | AddExamFault(content[question].wrongCode, &currRtkTime); |
| | | break; |
| | | } |