| | |
| | | |
| | | for (int i = 0; i < contentNum; ++i) { |
| | | content[i].itemStatus = TTS_NOT_START; |
| | | |
| | | DEBUG("灯光项目 <%d> item %d, TTS %s", i, content[i].item, content[i].tts); |
| | | } |
| | | testing = true; |
| | | |
| | |
| | | { |
| | | // 等语音播报完毕后计时 |
| | | if (id == examTtsSeq && testing) { |
| | | DEBUG("DummyLightTTSDone %d", id); |
| | | |
| | | for (int i = 0; i < contentNum; ++i) { |
| | | if (content[i].itemStatus == TTS_DOING) { |
| | | DEBUG("DummyLightTTSDone item %d", content[i].item); |
| | | content[i].itemStatus = TTS_DONE; |
| | | break; |
| | | } |
| | |
| | | for (; i < contentNum; ++i) { |
| | | switch (content[i].itemStatus) { |
| | | case TTS_NOT_START: |
| | | DEBUG("提示语言 %d: %s", i, content[i].tts); |
| | | DEBUG("提示语言 %d: %s", content[i].item, content[i].tts); |
| | | content[i].itemStatus = TTS_DOING; |
| | | examTtsSeq = PlayTTS(content[i].tts, DummyLightTTSDone); |
| | | // 等待TTS播放完毕 |
| | |
| | | content[i].itemStatus = WAIT_OPERATE; |
| | | |
| | | AppTimer_delete(DummyLightCheckActive); |
| | | |
| | | DEBUG("提示语言完毕 %d", content[i].item); |
| | | |
| | | if (content[i].item == OVERTAKE) { |
| | | checkCnt = 0; |
| | | turn_left_active = flash_beam_active = false; |