From 1abba6d0da35b3a89fead56896bf82c1b9aa7831 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期五, 06 十一月 2020 15:26:49 +0800 Subject: [PATCH] V2.9 修改静止判定时间 修改静止阈值 --- Src/main.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Src/main.c b/Src/main.c index 1a151a8..c09251f 100644 --- a/Src/main.c +++ b/Src/main.c @@ -210,8 +210,8 @@ u16 current_slotnum; extern int32_t offsettimeus; -#define FIXSLOT -#define FIXSLOTPOS 5 +//#define FIXSLOT +#define FIXSLOTPOS 10 u16 slotpos_intoatl; uint16_t bigslot_num; uint8_t fix_slotpos =FIXSLOTPOS; @@ -250,7 +250,7 @@ Usart1ParseDataCallback = UsartParseDataHandler; parameter_init(); //deca_sleep(1000); - g_com_map[VERSION] = 0x0207; + g_com_map[VERSION] = 0x0209; #ifdef DEBUG_MODE // g_com_map[DEV_ROLE]=1; // g_com_map[DEV_ID]=0x123; @@ -266,6 +266,8 @@ { g_com_map[COM_INTERVAL]=100; } + if(g_com_map[IMU_THRES]>10) + {g_com_map[IMU_THRES]=2;} if(g_com_map[POWER]>MAX_RFPOWER) {g_com_map[POWER]=MAX_RFPOWER;} if(g_com_map[POWER]<0) -- Gitblit v1.9.3