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 ++-- lib/src/main/cpp/rtk_module/rtk.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/main/cpp/rtk_module/rtk.cpp b/lib/src/main/cpp/rtk_module/rtk.cpp index b7afde4..a5c75d3 100644 --- a/lib/src/main/cpp/rtk_module/rtk.cpp +++ b/lib/src/main/cpp/rtk_module/rtk.cpp @@ -214,7 +214,7 @@ }*/ if (RxBufLen > 0) { -#if 0 +#if 1 const uint8_t *ptr = parseGPS(RxBuf, RxBuf + RxBufLen); if(ptr != RxBuf) { memcpy(RxBuf, ptr, RxBufLen - (ptr - RxBuf)); 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