yy1717
2020-10-23 c484cbb09d445e2ab30ea011c6d2ffd87202bb26
lib/src/main/cpp/test_items2/operate_gear.cpp
@@ -32,7 +32,7 @@
    setup = 0;
    PlayTTS("请进行加减挡位操作", TtsBack);
    PlayTTS(examParam.shift_begin_tts, TtsBack);
}
bool TestOperateGear(const struct RtkTime *rtkTime)
@@ -104,7 +104,7 @@
            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;
@@ -130,8 +130,8 @@
            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;
        }