From 8611c0f0267870ef8c7d456a3cf6dea001462d93 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期二, 24 三月 2020 21:21:08 +0800 Subject: [PATCH] 修改MOBUS地址=模块ID --- 源码/核心板/Src/main.c | 6 +++--- 1 files changed, 3 insertions(+), 3 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 acba733..0bf4363 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" @@ -10,7 +10,7 @@ #include "serial_at_cmd_app.h" #include "global_param.h" #include "ADC.h" - +#include "modbus.h" //#define DEBUG_MODE void Device_Init(void) @@ -67,9 +67,9 @@ g_com_map[ANC_POLL]=0; g_com_map[ALARM_DISTANCE1]=100; #endif - pUWBDistanceTrackingDiff = NewTrackingDiffClass(2, 4, 0.03); + //pUWBDistanceTrackingDiff = NewTrackingDiffClass(2, 4, 0.03); dev_id = g_com_map[DEV_ID]; - g_com_map[VERSION] = 0x010c; + g_com_map[VERSION] = 0x0112; temp=(float)g_com_map[MAX_REPORT_ANC_NUM]*4/3; temp2=g_com_map[DEV_ID]*g_com_map[MAX_REPORT_ANC_NUM]*4/3; if(temp2<temp) -- Gitblit v1.9.3