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_items2/overtake.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/src/main/cpp/test_items2/overtake.cpp b/lib/src/main/cpp/test_items2/overtake.cpp
index c3e53ad..7f9d29b 100644
--- a/lib/src/main/cpp/test_items2/overtake.cpp
+++ b/lib/src/main/cpp/test_items2/overtake.cpp
@@ -25,7 +25,7 @@
 {
     DEBUG("瓒呰秺鍓嶆柟杞﹁締");
 
-    PlayTTS("璇疯秴瓒婂墠鏂硅溅杈�", TtsBack);
+    PlayTTS(examParam.overtake_begin_tts, TtsBack);
 
     setup = 0;
     originalLane = ori_lane;
@@ -51,7 +51,7 @@
         if (originalLane == currLane) {
 
         } else if (currLane == originalLane + 1) {
-            PlayTTS("瀹屾垚瓒呰溅", NULL);
+            PlayTTS(examParam.overtake_end_tts, NULL);
             return false;
         } else {
             DEBUG("瓒呰溅杩濊鍙橀亾");
@@ -60,7 +60,7 @@
         }
     }
 
-    if (ReadOdo() - maxMoveDistance > 150) {
+    if (ReadOdo() - maxMoveDistance > examParam.overtake_limit_distance) {
         // 瓒呰溅鏈畬鎴�
         DEBUG("瓒呰溅鍥哄畾璺濈鍐呮湭瀹屾垚 褰撳墠閲岀▼ %f", ReadOdo());
         AddExamFault(3, rtkTime);

--
Gitblit v1.8.0