From 7acf3eaf4ce196136328b0a20dfb754b60958cd3 Mon Sep 17 00:00:00 2001
From: fctom1215 <fctom1215@outlook.com>
Date: 星期六, 29 八月 2020 20:59:35 +0800
Subject: [PATCH] 坐标

---
 lib/src/main/cpp/test_items2/stop_car.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/src/main/cpp/test_items2/stop_car.cpp b/lib/src/main/cpp/test_items2/stop_car.cpp
index e5fa467..32c6899 100644
--- a/lib/src/main/cpp/test_items2/stop_car.cpp
+++ b/lib/src/main/cpp/test_items2/stop_car.cpp
@@ -42,7 +42,7 @@
 }
 
 bool TestStopCar(road_exam_map &RoadMap, int roadIndex, const car_model *car, int moveDirect, const struct RtkTime *rtkTime) {
-    struct RtkTime time;
+    static struct RtkTime time;
 
     if (setup == 0)
         return true;
@@ -101,7 +101,7 @@
 
         if (door.value == DOOR_OPEN) {
             if (!OpenDoor) {
-                if (rpm.value < ENGINE_MIN_ROTATE) {
+                if (rpm.value > ENGINE_MIN_ROTATE) {
                     // 涓嬭溅鍓嶏紝涓嶇唲鐏紝鎵�5鍒�
                     DEBUG("涓嬭溅鍓嶏紝涓嶇唲鐏�");
                     AddExamFault(40, rtkTime);

--
Gitblit v1.8.0