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/operate_gear.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/src/main/cpp/test_items2/operate_gear.cpp b/lib/src/main/cpp/test_items2/operate_gear.cpp
index d365cc7..c403d17 100644
--- a/lib/src/main/cpp/test_items2/operate_gear.cpp
+++ b/lib/src/main/cpp/test_items2/operate_gear.cpp
@@ -32,7 +32,7 @@
setup = 0;
- PlayTTS("璇疯繘琛屽姞鍑忔尅浣嶆搷浣�", TtsBack);
+ PlayTTS(examParam.shift_begin_tts, TtsBack);
}
bool TestOperateGear(const struct RtkTime *rtkTime)
@@ -104,7 +104,7 @@
setup = 3;
}
} else if (setup == 3) {
- if (TimeGetDiff(rtkTime, &shiftTime) >= D_SEC(3)) {
+ if (TimeGetDiff(rtkTime, &shiftTime) >= examParam.shift_hold_time) {
setup = 4;
char buff[128];
expectGear += 0 - upDownShift;
@@ -130,8 +130,8 @@
DEBUG("浜屾鎹㈡尅鎴愬姛锛屼笅涓�涓�...");
}
} else if (setup == 5) {
- if (TimeGetDiff(rtkTime, &shiftTime) >= D_SEC(3)) {
- PlayTTS("鍔犲噺鎸′綅鎿嶄綔缁撴潫", NULL);
+ if (TimeGetDiff(rtkTime, &shiftTime) >= examParam.shift_hold_time) {
+ PlayTTS(examParam.shift_end_tts, NULL);
DEBUG("鍔犲噺鎸′綅鎿嶄綔缁撴潫");
return false;
}
--
Gitblit v1.8.0