From 43888daf1bd7325d37228c092e1252b0dfc5822e Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期三, 27 三月 2024 11:27:36 +0800 Subject: [PATCH] 1.47 去掉同步基站时间,解决和车载防撞基站,没有下发时间,导致测距频率异常的BUG --- Src/application/dw_app.h | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h index 4069015..ee45565 100644 --- a/Src/application/dw_app.h +++ b/Src/application/dw_app.h @@ -8,13 +8,15 @@ #include "ADC.h" #include "TrackingDiff.h" -//#define WORK_MODE_TAG -#define WORK_MODE_ANCHOR +#define BASELOST_STOPMOTOR_TIME 5 +//BITSTATE +#define GOINGSLEEPBIT 1 //#define NEWBOARD //#define TAG_OUTPUT #define HEX_OUTPUT +#define SLOT_SCALE 0.7 #define MAX_NEARBASE_NUM 12 #define KEEP_TIMES 3 @@ -28,6 +30,8 @@ #define MIN_ANCHOR_NUM 2 #define SYNC_SEQ_IDX 5 #define REMOTEPARA_LEN 18 +#define TOTAL_SLOTNUM 200 +#define SLOTTIME_MS 48 #define POLL 0x01 #define RESPONSE 0x02 @@ -43,6 +47,7 @@ #define TAG_ID_IDX 5 #define MESSAGE_TYPE_IDX 9 //Poll +#define TAGSTATE 7 #define ANC_TYPE_IDX 14 //respose #define DIST_IDX 10 @@ -52,6 +57,7 @@ #define MOTORSTATE_INDEX 19 #define REMOTEPARA_INDEX 20 //Final +#define TAGCONFIGSUCCESS_INDEX 7 #define FINAL_MSG_POLL_TX_TS_IDX 10 #define FINAL_MSG_RESP_RX_TS_IDX 14 #define FINAL_MSG_FINAL_TX_TS_IDX 18 -- Gitblit v1.9.3