yy1717
2021-02-07 cea2a94fc97e79897cdfd217be8250c075974a1a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// Created by YY on 2020/3/9.
//
 
#ifndef MYAPPLICATION2_DUMMY_LIGHT_H
#define MYAPPLICATION2_DUMMY_LIGHT_H
 
#include "../driver_test.h"
#include <vector>
#include <string>
 
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<int> process;
    std::vector<int> 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