From 4b19ce29c8c25010cdba0bf4e0835b4e97c971e9 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期三, 25 九月 2024 11:18:46 +0800
Subject: [PATCH] 解决测距失败计数会影响基站和车载测距9位数问题,基站帧间隔单独改为1000

---
 keil/include/drivers/global_param.c |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/keil/include/drivers/global_param.c b/keil/include/drivers/global_param.c
index 44b7bd9..0dd6624 100644
--- a/keil/include/drivers/global_param.c
+++ b/keil/include/drivers/global_param.c
@@ -84,9 +84,15 @@
         g_com_map[CNT_RESTART]=0;
         g_com_map[CNT_REBOOT]=0;
         g_com_map[CNT_UPDATE]=0;
-        g_com_map[MODBUS_MODE]=0;
+        g_com_map[MOTOR_ONTIME_INDEX]=10;
         g_com_map[ACTIVE_INDEX]=0;
 
+        g_com_map[TCP_IP_0]=0x111;
+        g_com_map[TCP_IP_0]=0x198;
+        g_com_map[TCP_IP_0]=0x60; 
+        g_com_map[TCP_IP_0]=0x6;
+        g_com_map[TCP_IP_0]=1234;
+        
         g_com_map[HEIGHTOFFEST_INDEX]=0;
         save_com_map_to_flash();
     }
@@ -124,6 +130,12 @@
         g_com_map[MODBUS_MODE]=0;
         g_com_map[ACTIVE_INDEX]=0;
 
+        g_com_map[TCP_IP_0]=0x111;
+        g_com_map[TCP_IP_1]=0x198;
+        g_com_map[TCP_IP_2]=0x60; 
+        g_com_map[TCP_IP_3]=0x6;
+        g_com_map[TCP_PORT]=0x1234;
+        
         g_com_map[HEIGHTOFFEST_INDEX]=0;
         save_com_map_to_flash();
     }

--
Gitblit v1.9.3