yy1717
2020-05-15 529ab6f8a6b422b5299fab9c0ce2f30fe99c7be8
坐标
2个文件已修改
13 ■■■■■ 已修改文件
lib/src/main/cpp/native-lib.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
lib/src/main/cpp/test_items2/road_exam.cpp 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
lib/src/main/cpp/native-lib.cpp
@@ -26,7 +26,7 @@
const int RTK_PLATFORM_PORT = 12125;
const uint8_t phone[] = {0x20,0x19,0x10,0x15,0x00,0x00,0x00,0x01};
const char *VIRTUAL_RTK_IP = "192.168.16.101";
const char *VIRTUAL_RTK_IP = "192.168.16.100";
const int VIRTUAL_RTK_PORT = 9001;
static pthread_mutex_t tts_mutex = PTHREAD_MUTEX_INITIALIZER;
lib/src/main/cpp/test_items2/road_exam.cpp
@@ -75,6 +75,7 @@
static int startCar;
static int currExamMapIndex;
static int nextRoadId;
static bool checkDoor = false;
static bool handBreakActive = false;
@@ -524,6 +525,9 @@
        if (IntersectionOf(&carBody, &area) == GM_None) {
            DEBUG("离开路段 id = %d", RoadMap.roads[currExamMapIndex].id);
            RoadMap.roads[currExamMapIndex].arrivedTail = false;
            currExamMapIndex = FIND_POSITION;
        }
@@ -713,6 +717,13 @@
                laneChanging = false;
            }
        }
        ArrivedRoadEnd(RoadMap.roads[currExamMapIndex], car, CarModelList);
        if (CrashTheLine(RoadMap.roads[currExamMapIndex].stopLine, car, CarModelList)) {
            DEBUG("下一个目标路 id = %d", RoadMap.roads[currExamMapIndex].targetRoad);
            nextRoadId = RoadMap.roads[currExamMapIndex].targetRoad;
        }
    }
    // 撞红线