// // Created by YY on 2020/3/9. // #ifndef MYAPPLICATION2_DUMMY_LIGHT_H #define MYAPPLICATION2_DUMMY_LIGHT_H #include "../driver_test.h" #include #include enum { TURN_ON_DIPPED_LAMP = 1, DRIVE_AT_NIGHT, BRIDGE_MEET_CAR, TURN_ON_MAIN_BEAM_LAMP, FOLLOW_CAR, DRIVE_IN_FOG, THROUGE_CROSSWALK, CAR_FAULT, THROUGE_CURVE, THROUGE_CROSSROADS, PARK_CAR_TEMP, OVERTAKE }; struct dummy_light_exam { int item; int wrongCode; std::vector process; std::vector solution; std::string tts; }; void StartDummyLightExam(struct dummy_light_exam *ptr, int num, const struct RtkTime* rtkTime); bool ExecuteDummyLightExam(const struct RtkTime* rtkTime); void DummyLightTTSDone(int id); void TerminateDummyLightExam(void); void handleLigthExam(uint16_t id, int value); #endif //MYAPPLICATION2_DUMMY_LIGHT_H