From 59dc136533bb8d768953a2b2799cae6cf8d02982 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期四, 31 十月 2024 18:12:56 +0800
Subject: [PATCH] 增加小于3.3V供电不足,停止震动,GPS和4G功能,增加自动检测供电足够后开启4G,GPS,震动功能,增加静止休眠逻辑。g_com_map表中4G发送频率上位机未改,供电不足下单片机不进入低功耗bug未解决,

---
 keil/include/src/gps.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/keil/include/src/gps.c b/keil/include/src/gps.c
index 9121dd0..c13d0b2 100644
--- a/keil/include/src/gps.c
+++ b/keil/include/src/gps.c
@@ -1,13 +1,12 @@
 #include "board.h"
-#define GPS_OPEN_TIME_OUT  240
-#define GPS_RESTART_TIME1  1200
-#define GPS_RESTART_TIME2  120
+#define GPS_OPEN_TIME_OUT  48		//1分钟开启
+#define GPS_RESTART_TIME1  480  //10分钟
+#define GPS_RESTART_TIME2  48		//1分钟
 
 extern uint16_t gps_wait_count;
 uint8_t gps_power_state,gps_uwb_flag,gps_4g_flag,gps_timeout_flag,gps_need_data_flag = 1;
 void GPS_Poll(void)
 {
-
     if(gps_4g_flag||gps_uwb_flag) {
         gps_power_state = 1;  //打开GPS电源
         if(!gps_timeout_flag) {
@@ -52,6 +51,7 @@
         gps_timeout_flag=0;
         gps_need_data_flag=1;
     }
+		
 }
 void GpsConrol(uint8_t flag_4g_uwb,uint8_t open_close)
 {

--
Gitblit v1.9.3