From c484cbb09d445e2ab30ea011c6d2ffd87202bb26 Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期五, 23 十月 2020 18:05:34 +0800
Subject: [PATCH] 添加可用户配置的评判参数。

---
 lib/src/main/cpp/driver_test.h |   77 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 77 insertions(+), 0 deletions(-)

diff --git a/lib/src/main/cpp/driver_test.h b/lib/src/main/cpp/driver_test.h
index 07c91ff..11d5134 100644
--- a/lib/src/main/cpp/driver_test.h
+++ b/lib/src/main/cpp/driver_test.h
@@ -212,6 +212,83 @@
     Polygon map2;
 };
 
+typedef struct {
+    int hold_start_key_limit_time;      // 鐐圭伀淇濇寔锛屾绉�
+
+    int curve_pause_criteria;           // 鍋滆溅鏂畾锛岃豹绉�
+
+    int park_bottom_pause_criteria;     // 璞
+    int park_bottom_limit_time;         // 绉�
+
+    int park_edge_pause_criteria;       // MSec
+    int park_edge_limit_time;           // Sec
+
+    int turn_a90_pause_criteria;        // MSec
+
+    double ramp_stoppoint_red_distance; // 绫�
+    double ramp_edge_yellow_distance;
+    double ramp_edge_red_distance;
+    double ramp_slide_yellow_distance;
+    double ramp_slide_red_distance;
+    int ramp_start_car_limit_time;      // Sec
+
+    double road_slide_yellow_distance;
+    double road_slide_red_distance;
+    int road_total_distance;
+    int road_max_speed;                     // Km per hour
+    vector<vector<int>> gear_speed_table;
+    int gear_n_allow_time;                  // Sec
+    int same_gear_min_time;                 // Sec, x绉掑唴锛屼笉鍏佽N->X->N->X缃悓涓�鎸′綅
+    int gear_speed_error_cumulative_time;   // Sec
+    int road_pause_criteria;                // MSec
+    int continuous_change_lane_min_time;    // Sec
+    int crash_dotted_line_cumulative_time;  // Sec
+    int turn_signal_min_advance;            // Sec
+    int start_car_max_rpm;
+    int start_car_limit_distance;
+    double open_door_drive_allow_distance;
+    string start_car_begin_tts;
+    string start_car_end_tts;
+
+    int change_lane_limit_distance;
+    string change_lane_begin_tts;
+    string change_lane_end_tts;
+
+    int shift_limit_distance;
+    int shift_hold_time;                    // Sec
+    string shift_begin_tts;
+    string shift_end_tts;
+    string shift_up_tts;
+    string shift_down_tts;
+
+    string straight_begin_tts;
+    string straight_end_tts;
+    int straight_limit_distance;
+    double straight_max_offset;
+
+    int overtake_limit_distance;
+    string overtake_begin_tts;
+    string overtake_end_tts;
+
+    int stop_car_limit_distance;
+    int stop_car_open_door_allow_time;
+    double stop_car_edge_red_distance;
+    double stop_car_edge_yellow_distance;
+    string stop_car_begin_tts;
+    string stop_car_end_tts;
+    double crossing_stop_valid_distance;
+    int cross_school_max_speed;
+    int crossing_break_valid_distance;
+
+    string crossing_go_straight_tts;
+    string crossing_turn_left_tts;
+    string crossing_turn_right_tts;
+    string crossing_turn_back_tts;
+    string crossing_turn_unknown_tts;
+} exam_param_t;
+
+extern exam_param_t examParam;
+
 typedef vector<struct area_exam_map> LIST_AREA_MAP;
 
 typedef list<car_model *> LIST_CAR_MODEL;

--
Gitblit v1.8.0