From 2ca4a523987975d6db9ee181c9150f104f7d648b Mon Sep 17 00:00:00 2001 From: fctom1215 <fctom1215@outlook.com> Date: 星期五, 28 八月 2020 12:47:42 +0800 Subject: [PATCH] 坐标 --- lib/src/main/cpp/test_items2/road_exam.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/main/cpp/test_items2/road_exam.cpp b/lib/src/main/cpp/test_items2/road_exam.cpp index c9fc0d2..b4e0483 100644 --- a/lib/src/main/cpp/test_items2/road_exam.cpp +++ b/lib/src/main/cpp/test_items2/road_exam.cpp @@ -66,7 +66,7 @@ static const int INVALID_ROAD = -1; -static const int CROSSING_TURN_THRESHOLD = 45; +static const int CROSSING_TURN_THRESHOLD = 35; static const int TURN_THRESHOLD = 3; const double SLIDE_DISTANCE_THRESHOLD_RED = 0.3; @@ -1672,7 +1672,7 @@ turnTimeCnt += TimeGetDiff(rtkTime, &prevDetectTurnTime); int wise = isTurn((int) car->yaw, startTurnYaw, TURN_THRESHOLD); DEBUG("杞姩瑙掑害 %d", wise); - if (ABS(wise) > CROSSING_TURN_THRESHOLD) { + if (ABS(wise) >= CROSSING_TURN_THRESHOLD) { // 纭杞集琛屼负锛屾娴嬪紑濮嬪垰杞集鏃惰浆鍚戠伅鎯呭喌 turnCnt = -1; -- Gitblit v1.8.0