yy1717
2020-03-21 30a044067743c3d9d919d58456315816b071c412
坐标
1个文件已修改
8 ■■■■■ 已修改文件
lib/src/main/cpp/test_items2/through_something.cpp 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
lib/src/main/cpp/test_items2/through_something.cpp
@@ -51,13 +51,15 @@
        distance2StopLine = -distance2StopLine;
    }
    // 距离停止线30米前是否有刹车动作
    // 距离停止线30米内是否有刹车动作
    if (breakActive == 0) {
        if (distance2StopLine >= LASTEST_BREAK_POINT) {
        if (distance2StopLine > 0 && distance2StopLine <= LASTEST_BREAK_POINT) {
            if (ReadCarStatus(BREAK) == BREAK_ACTIVE) {
                breakActive = 1;
            }
        } else {
        }
        if (distance2StopLine < 0 && breakActive != 1){
            breakActive = -1;
            // 不按规定减速,不合格
            DEBUG("不踩下刹车,不合格");