| | |
| | | |
| | | setup = 0; |
| | | |
| | | PlayTTS("请进行加减挡位操作", TtsBack); |
| | | PlayTTS(examParam.shift_begin_tts, TtsBack); |
| | | } |
| | | |
| | | bool TestOperateGear(const struct RtkTime *rtkTime) |
| | |
| | | setup = 3; |
| | | } |
| | | } else if (setup == 3) { |
| | | if (TimeGetDiff(rtkTime, &shiftTime) >= D_SEC(3)) { |
| | | if (TimeGetDiff(rtkTime, &shiftTime) >= examParam.shift_hold_time) { |
| | | setup = 4; |
| | | char buff[128]; |
| | | expectGear += 0 - upDownShift; |
| | |
| | | DEBUG("二次换挡成功,下一个..."); |
| | | } |
| | | } else if (setup == 5) { |
| | | if (TimeGetDiff(rtkTime, &shiftTime) >= D_SEC(3)) { |
| | | PlayTTS("加减挡位操作结束", NULL); |
| | | if (TimeGetDiff(rtkTime, &shiftTime) >= examParam.shift_hold_time) { |
| | | PlayTTS(examParam.shift_end_tts, NULL); |
| | | DEBUG("加减挡位操作结束"); |
| | | return false; |
| | | } |