From 28f37df5dd32d6630dbcc23dca88f6a3ae063d7f Mon Sep 17 00:00:00 2001 From: zhangbo <zhangbo@qq.com> Date: 星期五, 23 五月 2025 18:03:21 +0800 Subject: [PATCH] 移植了国产加速度计的计步逻辑,逻辑是30s没有步数进入休眠模式1分钟上传一次 --- keil/uwb_tag.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/keil/uwb_tag.c b/keil/uwb_tag.c index 296d13d..0cf9947 100644 --- a/keil/uwb_tag.c +++ b/keil/uwb_tag.c @@ -17,8 +17,8 @@ #define RANGING_PERIOD_MS (1000) /* This is the delay from the end of the poll frame transmission to the enable of the receiver */ -#define POLL_TX_TO_RESP_RX_DLY_US 750U //yuan700 - +#define POLL_TX_TO_RESP_RX_DLY_US 600U //yuan700 +//#define POLL_TX_TO_RESP_RX_DLY_US 550U //yuan700 #define RESP_RX_TO_FINAL_TX_DLY_US 550U /* Poll delay: 1s */ @@ -33,7 +33,10 @@ #define FINAL_MSG_RESP_RX_TS_IDX 14 #define FINAL_MSG_FINAL_TX_TS_IDX 18 #define DELAY_DEFAULT 1000 -#define DELAY_BETWEEN_TWO_FRAME_UUS 600 //yuan1400 + +#define DELAY_BETWEEN_TWO_FRAME_UUS 400 //yuan1400 +//#define DELAY_BETWEEN_TWO_FRAME_UUS 400 //yuan1400 + #define HALF_SECOND_TIME 62400000 static uint16_t CmpTagInList(uint16_t tagid); @@ -45,7 +48,7 @@ uint8_t phy_work_mode; /* PHY_TX / PHY_RX / PHT_TX|PHY_RX */ struct UWB_CONFIG_T phy_cfg; }; -extern uint32_t dev_id; +extern uint16_t dev_id; extern uint8_t group_id; /* Default communication configuration. */ static struct mk_uwb_configure config = {//yuan -- Gitblit v1.9.3