| | |
| | | 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; |
| | |
| | | |
| | | static int startCar; |
| | | static int currExamMapIndex; |
| | | static int nextRoadId; |
| | | |
| | | static bool checkDoor = false; |
| | | static bool handBreakActive = false; |
| | |
| | | |
| | | if (IntersectionOf(&carBody, &area) == GM_None) { |
| | | DEBUG("离开路段 id = %d", RoadMap.roads[currExamMapIndex].id); |
| | | |
| | | RoadMap.roads[currExamMapIndex].arrivedTail = false; |
| | | |
| | | currExamMapIndex = FIND_POSITION; |
| | | } |
| | | |
| | |
| | | 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; |
| | | } |
| | | } |
| | | |
| | | // 撞红线 |