From 858c42df60ffeb07dc5916e2cec1f0b98b1b4e39 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期五, 12 五月 2023 12:04:39 +0800 Subject: [PATCH] V2.4 1.修改震动逻辑,先短振3下,5秒后再振3下,每5分钟循环一次,如果短按按键,2小时内不再震动。 2.SOS改成长按3秒按键触发。 --- Src/application/dw_app.h | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h index 4406180..bc5ddc7 100644 --- a/Src/application/dw_app.h +++ b/Src/application/dw_app.h @@ -71,7 +71,7 @@ #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 @@ -88,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 -- Gitblit v1.9.3