From c8f2474c44c861811c9665352a9a2bcfc81d3cb9 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期二, 22 八月 2023 16:47:50 +0800 Subject: [PATCH] 提交缺失文件 --- Src/application/dw_app.h | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h index 80d0e1c..56ea256 100644 --- a/Src/application/dw_app.h +++ b/Src/application/dw_app.h @@ -45,9 +45,13 @@ #define NEAR_RESPONSE 0x07 #define NEAR_FINAL 0x08 #define SPOLL 0x09 + #define DISCOVERPOLL 0x0A #define DISCOVERRESPONSE 0x0B #define DISCOVERFINAL 0x0C + +#define DISCOVERPOLL2 0x1A + #define POS_MSG 0x15 #define POS_POLL 0x16 @@ -56,12 +60,13 @@ #define REG_POLL 0x10 // #define REG_RESPONSE 0x11 // +#define REG_POLL2 0x20 // //General #define GROUP_ID_IDX 0 #define ANCHOR_ID_IDX 1 #define TAG_ID_IDX 5 -#define MESSAGE_TYPE_IDX 9 -#define POLL_USERDATA_IDX 20 +#define MESSAGE_TYPE_IDX 9 +#define POLL_USERDATA_IDX 32 #define NEARBASENUM_INDEX 18 #define NEARBASEID_INDEX 19 //Poll @@ -132,7 +137,7 @@ extern uint32_t g_UWB_com_interval; extern float dis_after_filter; -extern uint8_t usart_send[25]; +extern uint8_t usart_send[40]; void IdleTask(void); uint16_t Checksum_u16(uint8_t* pdata, uint32_t len); -- Gitblit v1.9.3