fctom1215
2021-04-28 148254bb1dc170db320bcb208ca79b0e252751d8
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);     // 取最远的
}
// 整个车辆都要驶离该测试区域