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/test_items/park_bottom.cpp |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/lib/src/main/cpp/test_items/park_bottom.cpp b/lib/src/main/cpp/test_items/park_bottom.cpp
index 5854125..40350b5 100644
--- a/lib/src/main/cpp/test_items/park_bottom.cpp
+++ b/lib/src/main/cpp/test_items/park_bottom.cpp
@@ -27,12 +27,9 @@
     THIRD_TOUCH_CTRL_LINE
 };
 
-const int PARK_TIMEOUT = D_SEC(210);
-
 static bool testing = false, reverseCar = false;
 static int mapIndex = 0;
 
-const uint32_t STOP_CAR_TIME = D_SEC(2);
 const uint32_t CHECK_PARK_DELAY = 400;
 
 static uint32_t stopTimepoint;
@@ -153,7 +150,7 @@
         }
     }
 
-    if (testing && darray[0] > 0 && tp - firstReverseTimepoint >= PARK_TIMEOUT) {
+    if (testing && darray[0] > 0 && tp - firstReverseTimepoint >= examParam.park_bottom_limit_time) {
         // 瀹屾垚瓒呮椂锛屼笉鍚堟牸
         if (!reportExamTimeout) {
             reportExamTimeout = true;
@@ -178,7 +175,7 @@
 
             if (moveDirect == storeMoveDirectBeforeStop) {
                 // 鍚屾柟鍚戝啀鍚姩锛岀户缁垽鏂槸鍚﹀仠杞﹁秴鏃�
-                if (tp - stopTimepoint >= STOP_CAR_TIME && reverseCar) {
+                if (tp - stopTimepoint >= examParam.park_bottom_pause_criteria && reverseCar) {
                     // 鍋滆溅瓒�2绉掞紝姣忔鎵�5鍒�
                     AddExamFault(11, rtkTime);
                     DEBUG("涓�斿仠杞�");

--
Gitblit v1.8.0