From bf8e1f4ef4961b32dfa73a0b898f82c20721bf09 Mon Sep 17 00:00:00 2001
From: fctom1215 <fctom1215@outlook.com>
Date: 星期五, 28 八月 2020 08:56:23 +0800
Subject: [PATCH] 坐标

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

diff --git a/lib/src/main/cpp/test_items2/through_something.cpp b/lib/src/main/cpp/test_items2/through_something.cpp
index 2c18908..09f6318 100644
--- a/lib/src/main/cpp/test_items2/through_something.cpp
+++ b/lib/src/main/cpp/test_items2/through_something.cpp
@@ -14,7 +14,7 @@
 #include "road_exam.h"
 #include "../utils/xconvert.h"
 
-#define DEBUG(fmt, args...)     LOGD("<through_something> <%s>: " fmt, __func__, ##args)
+#define DEBUG(fmt, args...)     LOGD("<road_exam through_something> <%s>: " fmt, __func__, ##args)
 
 using namespace std;
 
@@ -91,11 +91,13 @@
             }
             // 璁板綍鍒硅溅
             if (dobreak && !(rec & REDUCE_SPEED)) {
+                DEBUG("妫�娴嬪埌璺彛鍒硅溅鍔ㄤ綔");
                 SetTargetReduceRec(TargetReduceRec, key, rec | REDUCE_SPEED);
             }
         } else if (distance > 1e-3 && distance < DISTANCE_STOP_CAR_TO_STOP_LINE) {
             // 璺彛鍋滆溅瑙傚療
             if (moveDirect == 0 && !(rec & STOP_CAR)) {
+                DEBUG("妫�娴嬪埌璺彛鍋滆溅鍔ㄤ綔");
                 SetTargetReduceRec(TargetReduceRec, key, rec | STOP_CAR);
             }
         } else if (distance > LASTEST_BREAK_POINT + 5 && rec != NOT_ENTER) {
@@ -126,6 +128,7 @@
                 }
                 // 璁板綍鍒硅溅锛屽仠杞�
                 if (dobreak && !(rec & REDUCE_SPEED)) {
+                    DEBUG("妫�娴嬪埌浜鸿閬撶瓑鍒硅溅鍔ㄤ綔");
                     SetTargetReduceRec(TargetReduceRec2, key, rec | REDUCE_SPEED);
                 }
             } else if (distance1 > LASTEST_BREAK_POINT + 5 && rec != NOT_ENTER) {

--
Gitblit v1.8.0