fctom1215
2020-08-28 2ca4a523987975d6db9ee181c9150f104f7d648b
坐标
2个文件已修改
6 ■■■■ 已修改文件
lib/src/main/cpp/rtk_module/rtk.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
lib/src/main/cpp/test_items2/road_exam.cpp 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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));
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;