From e3dfcf2b4eafdb5bace59d796a270f8e8d532763 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期二, 16 十一月 2021 15:14:21 +0800 Subject: [PATCH] V1.46增加MODBUS自动回复功能 --- 源码/核心板/Src/main.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" index a3e26bd..3c39dd3 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/main.c" @@ -52,6 +52,7 @@ extern u8 module_power; u16 slottime,max_slotnum,current_slotpos,dist_threshold; +u16 supergroupid; void Program_Init(void) {uint16_t i; float temp; @@ -91,7 +92,9 @@ { module_power=67; } - g_com_map[VERSION] = 0x0129; + supergroupid = g_com_map[IMU_THRES]; + g_com_map[VERSION] = 0x012e; + g_com_map[SW_TYPE] = SW_MODBUS; temp=(float)g_com_map[MAX_REPORT_ANC_NUM]*4/3; temp2=g_com_map[MAX_REPORT_ANC_NUM]*4/3; if(temp2<temp) -- Gitblit v1.9.3