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/driving_curve.cpp | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/lib/src/main/cpp/test_items/driving_curve.cpp b/lib/src/main/cpp/test_items/driving_curve.cpp index 9f19572..085a8d0 100644 --- a/lib/src/main/cpp/test_items/driving_curve.cpp +++ b/lib/src/main/cpp/test_items/driving_curve.cpp @@ -18,8 +18,6 @@ #define DEBUG(fmt, args...) LOGD("<driving_curve> <%s>: " fmt, __func__, ##args) -const uint32_t STOP_CAR_TIME = D_SEC(2); - static bool testing = false; static int mapIndex = 0; static uint32_t stopTimepoint = 0; @@ -132,7 +130,7 @@ } else if (moveDirect == 0) { uint32_t tp = TimeMakeComposite(rtkTime->hh, rtkTime->mm, rtkTime->ss, rtkTime->mss*10); - if (tp - stopTimepoint >= STOP_CAR_TIME && !reportStopCarTimeout) { + if (tp - stopTimepoint >= examParam.curve_pause_criteria && !reportStopCarTimeout) { // 鍋滆溅瓒�2绉掞紝涓嶅悎鏍� AddExamFault(28, rtkTime); DEBUG("涓�斿仠杞�"); -- Gitblit v1.8.0