From 950676ea7305bb90e08ec88bcac40e4c47fcefca Mon Sep 17 00:00:00 2001
From: zhangbo <zhangbo@qq.com>
Date: 星期四, 15 五月 2025 11:06:38 +0800
Subject: [PATCH] 添加计步以及测距

---
 keil/include/drivers/global_param.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/keil/include/drivers/global_param.c b/keil/include/drivers/global_param.c
index 2878798..d9737a0 100644
--- a/keil/include/drivers/global_param.c
+++ b/keil/include/drivers/global_param.c
@@ -84,14 +84,14 @@
         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]=0x1234;
+        g_com_map[TCP_IP_0]=1234;
         
         g_com_map[HEIGHTOFFEST_INDEX]=0;
         save_com_map_to_flash();
@@ -120,7 +120,7 @@
 
         g_com_map[POWER]=67;    //发射功率
         g_com_map[IMU_THRES]=2;
-        g_com_map[NOMOVESLEEP_TIME]=120;   //静止休眠2分钟
+        g_com_map[NOMOVESLEEP_TIME]=300;   //静止休眠5分钟
         g_com_map[MOTOR_ENABLE]=1;       //震动电机使能
         g_com_map[IMU_ENABLE]=1;        //静止休眠使能
 
@@ -130,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