From a4586d89681d7d282c26f49c9b799c5b09f553dd Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期二, 28 三月 2023 13:20:19 +0800 Subject: [PATCH] V2.3 修改加速计阈值到2 --- Src/application/dw_app.h | 28 ++++++++++++++++++++++++---- 1 files changed, 24 insertions(+), 4 deletions(-) diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h index 567fc39..bc5ddc7 100644 --- a/Src/application/dw_app.h +++ b/Src/application/dw_app.h @@ -33,6 +33,8 @@ #define MIN_ANCHOR_NUM 2 #define SYNC_SEQ_IDX 5 #define REMOTEPARA_LEN 18 +#define OUTRANGE_RESTARTTIMES 5 + #define POLL 0x01 #define RESPONSE 0x02 @@ -43,6 +45,14 @@ #define NEAR_RESPONSE 0x07 #define NEAR_FINAL 0x08 #define SPOLL 0x09 +#define DISCOVERPOLL 0x0A +#define DISCOVERRESPONSE 0x0B +#define DISCOVERFINAL 0x0C + +#define POS_MSG 0x15 +#define POS_POLL 0x16 +#define POS_RESPONSE 0x17 +#define POS_FINAL 0x18 #define REG_POLL 0x10 // #define REG_RESPONSE 0x11 // @@ -61,10 +71,13 @@ #define DIST_IDX 10 #define ANCTIMEMS 14 #define ANCTIMEUS 16 -#define TAGSLOTPOS 7 + #define MOTORSTATE_INDEX 19 #define NR_NEARSWITCH_DISTANCE 20 #define REMOTEPARA_INDEX 22 +#define MAXRANGE_DISTANCE 22 +#define ANC_SIGNALPOWER 24 + //Final #define TAGCONFIGSUCCESS_INDEX 7 #define FINAL_MSG_POLL_TX_TS_IDX 10 @@ -75,12 +88,18 @@ //SYNC #define SYNC_SEQ_IDX 5 //NEAR MSG -#define NEARMSG_EMPTYSLOTPOS_INDEX 1 //RESPONSE +#define ANCMSG_EMPTYSLOTPOS_INDEX 1 //RESPONSE //NEAR POLL #define NEARP_TAGFREQ_INDEX 10 +#define NEARP_TAGNEWPOSFLAG_INDEX 11 #define NEARP_TAGSLOTPOS_INDEX 12 - - +//POS RESPONSE +#define PR_TAGPOS_INDEX 7 +//TAG MSG +#define TAGMSG_CURRENTPOS_IDX 10 +//ANC MSG +#define ANCMSG_TAGSLOTPOS_IDX 10 //RESPONSE +#define ANCMSG_TAGPERIODMS_IDX 12 //100ms整数倍 //REG POLL #define REGP_TAGSTATE_INDEX 10 #define REGP_VERSION_INDEX 11 @@ -127,4 +146,5 @@ extern void TagDistClear(void); void Dw1000_App_Init(void); +void DelayOneSlot(void); #endif -- Gitblit v1.9.3