From 345dcbfaf5a716fdd8649885c32c34b50d361968 Mon Sep 17 00:00:00 2001 From: yy1717 <fctom1215@outlook.com> Date: 星期五, 28 二月 2020 17:39:58 +0800 Subject: [PATCH] 更新地图 --- lib/src/main/cpp/test_items2/common_check.cpp | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/lib/src/main/cpp/test_items2/common_check.cpp b/lib/src/main/cpp/test_items2/common_check.cpp index 2fce091..e572c16 100644 --- a/lib/src/main/cpp/test_items2/common_check.cpp +++ b/lib/src/main/cpp/test_items2/common_check.cpp @@ -3,3 +3,36 @@ // #include "common_check.h" +#include "../test_items/comm_test.h" +#include "../driver_test.h" + +// 鐢变汉宸ョ‘璁� +// 2 閬尅杞﹀唴鐩戞帶璁惧 +// 3 涓嶆寜鑰冭瘯鍛樻寚浠よ椹� +// 9 涓嶆寜浜ら�氫俊鍙枫�佹爣绾胯椹� +// 28 璧锋鏃惰溅杈嗗彂鐢熼棷鍔� + +static int prevMoveDirect; + +void StartCheck(int moveDirect, double speed, const struct RtkTime *rtkTime) +{ + if (prevMoveDirect != moveDirect) { + + if (prevMoveDirect == 0) { + // 璧锋鎸傞敊鎸★紝涓嶅悎鏍� + if (CheckSensorX(SHIFT) != '1') { + AddExamFault(19, rtkTime); + } + + // 璧锋娌℃湁鍏抽棴杞﹂棬锛屼笉鍚堟牸 + if (CheckSensorX(DOOR) != 1) { + AddExamFault(23, rtkTime); + } + + // 鍚庢粦鍒ゆ柇 + + } + + prevMoveDirect = moveDirect; + } +} -- Gitblit v1.8.0