#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]; }