fctom1215
2020-02-19 dc2a01d4764efd33a23afcaf4f1d7543dc35c4fa
lib/src/main/cpp/test_items/stop_and_start.cpp
@@ -26,7 +26,7 @@
const double EPSILON = 1e-3;
static bool SASTesting = false;
static bool testing = false;
static double slideDistance;
static PointF stopPoint;
@@ -49,7 +49,7 @@
void StartSAS(int moveDirect, const struct RtkTime *rtkTime)
{
    DEBUG("进入坡起项目");
    SASTesting = true;
    testing = true;
    slideDistance = 0.0;
    prevMoveDirect = moveDirect;
@@ -68,8 +68,6 @@
int TestSAS(const Polygon *map, const car_model *car, const car_model *carPrev, double speed, int moveDirect, const struct RtkTime *rtkTime)
{
    int status = 0;
    if (CrashRedLine(map, car)) {
        // 车轮压线,不合格
        if (!occurCrashRedLine) {
@@ -83,7 +81,7 @@
    if (ExitTestArea(map, car)) {
        // 驶离测试区
        status = 1;
        testing = false;
    }
    if (prevMoveDirect != moveDirect) {
@@ -173,7 +171,7 @@
        }
    }
    return status;
    return testing ? 0 : 1;
}
// 车轮是否压边线