From 148254bb1dc170db320bcb208ca79b0e252751d8 Mon Sep 17 00:00:00 2001 From: fctom1215 <fctom1215@outlook.com> Date: 星期三, 28 四月 2021 19:26:00 +0800 Subject: [PATCH] 修改科目三道路识别问题 --- lib/src/main/cpp/test_items/stop_and_start.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/lib/src/main/cpp/test_items/stop_and_start.cpp b/lib/src/main/cpp/test_items/stop_and_start.cpp index 672c0ad..135f74b 100644 --- a/lib/src/main/cpp/test_items/stop_and_start.cpp +++ b/lib/src/main/cpp/test_items/stop_and_start.cpp @@ -14,6 +14,7 @@ #include "../test_common/car_sensor.h" #include "../master/comm_if.h" #include "area_exam.h" +#include "../defs.h" #define DEBUG(fmt, args...) LOGD("<stop_and_start> <%s>: " fmt, __func__, ##args) @@ -287,7 +288,8 @@ double l2 = DistanceOf(car->carXY[car->right_rear_tire[TIRE_OUTSIDE]], edge); - return (l1+l2)/2.0; +// return (l1+l2)/2.0; + return MAX(l1, l2); // 鍙栨渶杩滅殑 } // 鏁翠釜杞﹁締閮借椹剁璇ユ祴璇曞尯鍩� -- Gitblit v1.8.0