From bf8e1f4ef4961b32dfa73a0b898f82c20721bf09 Mon Sep 17 00:00:00 2001 From: fctom1215 <fctom1215@outlook.com> Date: 星期五, 28 八月 2020 08:56:23 +0800 Subject: [PATCH] 坐标 --- lib/src/main/cpp/test_items2/car_start.cpp | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/main/cpp/test_items2/car_start.cpp b/lib/src/main/cpp/test_items2/car_start.cpp index 07a9916..9d0fb35 100644 --- a/lib/src/main/cpp/test_items2/car_start.cpp +++ b/lib/src/main/cpp/test_items2/car_start.cpp @@ -11,7 +11,7 @@ #include "../jni_log.h" #include "../common/apptimer.h" -#define DEBUG(fmt, args...) LOGD("<car_start> <%s>: " fmt, __func__, ##args) +#define DEBUG(fmt, args...) LOGD("<road_exam car_start> <%s>: " fmt, __func__, ##args) static const int MAX_ENGINE_RPM = 2500; static const double START_CAR_MOVE_DISTANCE = 10.0; @@ -32,9 +32,9 @@ checkStartCarSignal = false; checkDoor = false; handBreakActive = false; - int id = PlayTTS("璇疯捣姝�", cb); + PlayTTS("璇疯捣姝�", cb); - DEBUG("璇煶寮�濮� %d", id); + DEBUG("杞﹁締璧锋"); } bool TestCarStart(const car_model *car, double speed, int moveDirect, const struct RtkTime *rtkTime) @@ -42,7 +42,7 @@ car_sensor_value_t sensor; double moveDistance = ReadOdo() - startCarMoveDistance; - DEBUG("璧锋琛岄┒璺濈 %f", moveDistance); +// DEBUG("璧锋琛岄┒璺濈 %f", moveDistance); if (!checkStartCarSignal && moveDirect == 1) { checkStartCarSignal = true; @@ -53,7 +53,7 @@ DEBUG("鍙樿皟鏈墦鐏�!!"); // 娌℃墦鐏紝涓嶅悎鏍� AddExamFault(13, rtkTime); - } else if (TimeGetDiff(rtkTime, &sensor.time) >= D_SEC(3)) { + } else if (TimeGetDiff(rtkTime, &sensor.time) < D_SEC(3)) { DEBUG("杞悜鐏椂闂翠笉瓒�"); // 涓嶈冻3绉掞紝涓嶅悎鏍� AddExamFault(14, rtkTime); -- Gitblit v1.8.0