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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
#include "error_list.h"
 
//
// Created by YY on 2019/10/31.
//
const error_list_t errorList[] = {
        {
                .id = 0,
                .text_desc = "",
                .item = 0,
                .dec_score = 0
        },
        {
                .id = 1,
                .text_desc = "不按规定使用安全带",
                .item = 1,
                .dec_score = 100
        },
        {
                .id = 2,
                .text_desc = "不按考试员指令行驶",
                .item = 1,
                .dec_score = 100
        },
        {
                .id = 3,
                .text_desc = "启动发动机时挡位未置于空档(驻车挡)",
                .item = 1,
                .dec_score = 100
        },
        {
                .id = 4,
                .text_desc = "发动机启动后,不及时松开启动开关",
                .item = 1,
                .dec_score = 10
        },
        {
                .id = 5,
                .text_desc = "因操作不当造成发动机熄火一次",
                .item = 1,
                .dec_score = 10
        },
        {
                .id = 6,
                .text_desc = "不按规定线路、顺序行驶",
                .item = 2,
                .dec_score = 100
        },
        {
                .id = 7,
                .text_desc = "车身出线",
                .item = 2,
                .dec_score = 100
        },
        {
                .id = 8,
                .text_desc = "倒库不入",
                .item = 2,
                .dec_score = 100
        },
        {
                .id = 9,
                .text_desc = "在倒车前,未将两个前轮触地点均驶过控制线",
                .item = 2,
                .dec_score = 100
        },
        {
                .id = 10,
                .text_desc = "项目完成时间超过210秒",
                .item = 2,
                .dec_score = 100
        },
        {
                .id = 11,
                .text_desc = "中途停车时间超过2秒",
                .item = 2,
                .dec_score = 5
        },
        {
                .id = 12,
                .text_desc = "车辆停止后,前保险杠未定于桩杆线上,且前后超出50cm",
                .item = 3,
                .dec_score = 100
        },
        {
                .id = 13,
                .text_desc = "行驶中车轮压线",
                .item = 3,
                .dec_score = 100
        },
        {
                .id = 14,
                .text_desc = "车辆停止后,车身距离路边线超出50cm",
                .item = 3,
                .dec_score = 100
        },
        {
                .id = 15,
                .text_desc = "起步时间超过30s",
                .item = 3,
                .dec_score = 100
        },
        {
                .id = 16,
                .text_desc = "起步后溜大于30cm",
                .item = 3,
                .dec_score = 100
        },
        {
                .id = 17,
                .text_desc = "车辆停止后,前保险杠未定于桩杆线上,且前后不超出50cm",
                .item = 3,
                .dec_score = 10
        },
        {
                .id = 18,
                .text_desc = "车辆停止后,车身距离路边缘线超出30cm,未超出50cm",
                .item = 3,
                .dec_score = 10
        },
        {
                .id = 19,
                .text_desc = "停车后,未拉紧驻车制动器",
                .item = 3,
                .dec_score = 10
        },
        {
                .id = 20,
                .text_desc = "起步时车辆后溜距离10cm~30cm",
                .item = 3,
                .dec_score = 10
        },
        {
                .id = 21,
                .text_desc = "车辆入库停止后,车身出线",
                .item = 4,
                .dec_score = 100
        },
        {
                .id = 22,
                .text_desc = "项目完成时间超过90s",
                .item = 4,
                .dec_score = 100
        },
        {
                .id = 23,
                .text_desc = "行驶中车轮触轧车道边线",
                .item = 4,
                .dec_score = 10
        },
        {
                .id = 24,
                .text_desc = "行驶中车身触碰车位边线",
                .item = 4,
                .dec_score = 10
        },
        {
                .id = 25,
                .text_desc = "出库时不使用或错误使用转向灯",
                .item = 4,
                .dec_score = 10
        },
        {
                .id = 26,
                .text_desc = "中途停车时间超过2秒",
                .item = 4,
                .dec_score = 5
        },
        {
                .id = 27,
                .text_desc = "车轮轧道路边缘线",
                .item = 5,
                .dec_score = 100
        },
        {
                .id = 28,
                .text_desc = "中途停车时间超过2秒",
                .item = 5,
                .dec_score = 100
        },
        {
                .id = 29,
                .text_desc = "车轮轧道路边缘线",
                .item = 6,
                .dec_score = 100
        },
        {
                .id = 30,
                .text_desc = "转弯时不使用或错误使用转向灯,转弯后不关闭转向灯",
                .item = 6,
                .dec_score = 10
        },
        {
                .id = 31,
                .text_desc = "中途停车时间超过2秒",
                .item = 6,
                .dec_score = 5
        }
};
 
error_list_t GetErrorList(int index)
{
        if (index >= sizeof(errorList) / sizeof(errorList[0]))
                return errorList[0];
 
        return errorList[index];
}