From d0ecbb6b662da93cf85096bd628d41729cd47b24 Mon Sep 17 00:00:00 2001
From: chen <15335560115@163.com>
Date: 星期一, 11 十一月 2024 18:16:49 +0800
Subject: [PATCH] 手环加入上位机配置4G和GPS更新频率设置,加入供电过低保护,减少搜索为1s,震动逻辑变为10s停,500ms震,搜索模式加入校准时间函数,满足功耗稳定测距版本,加入SOS报警上传,初步加入查询伪代码,加入休眠唤醒逻辑

---
 keil/include/drivers/mk_radar.c |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/keil/include/drivers/mk_radar.c b/keil/include/drivers/mk_radar.c
index 354db5a..39fc684 100644
--- a/keil/include/drivers/mk_radar.c
+++ b/keil/include/drivers/mk_radar.c
@@ -329,7 +329,7 @@
         for (uint32_t i = 0; i < pulse_period_points; i++)
         {
             uint32_t idx = ((pulse_period_points - calibration_peak_idx + i) > (pulse_period_points - 1)) ? (i - calibration_peak_idx)
-                                                                                                          : (pulse_period_points - calibration_peak_idx + i);
+                           : (pulse_period_points - calibration_peak_idx + i);
 
             data_out[idx * 2] = period_samples_out[i * 2];
             data_out[idx * 2 + 1] = period_samples_out[i * 2 + 1];
@@ -488,7 +488,7 @@
     for (uint32_t i = 0; i < pulse_period_points; i++)
     {
         uint32_t idx = ((pulse_period_points - calibration_peak_idx + i) > (pulse_period_points - 1)) ? (i - calibration_peak_idx)
-                                                                                                      : (pulse_period_points - calibration_peak_idx + i);
+                       : (pulse_period_points - calibration_peak_idx + i);
 
         data_out[idx * 2] = period_samples_out[i * 2];
         data_out[idx * 2 + 1] = period_samples_out[i * 2 + 1];
@@ -599,25 +599,25 @@
 
     switch (default_radar_cfg.pulse_period)
     {
-        case UWB_RADAR_PULSE_PERIOD_16NS:
-            sts_key = 0x00000000;
-            break;
+    case UWB_RADAR_PULSE_PERIOD_16NS:
+        sts_key = 0x00000000;
+        break;
 
-        case UWB_RADAR_PULSE_PERIOD_32NS:
-            sts_key = 0x55555555;
-            break;
+    case UWB_RADAR_PULSE_PERIOD_32NS:
+        sts_key = 0x55555555;
+        break;
 
-        case UWB_RADAR_PULSE_PERIOD_64NS:
-            sts_key = 0xEEEEEEEE;
-            break;
+    case UWB_RADAR_PULSE_PERIOD_64NS:
+        sts_key = 0xEEEEEEEE;
+        break;
 
-        case UWB_RADAR_PULSE_PERIOD_128NS:
-            sts_key = 0xFEFEFEFE;
-            break;
+    case UWB_RADAR_PULSE_PERIOD_128NS:
+        sts_key = 0xFEFEFEFE;
+        break;
 
-        case UWB_RADAR_PULSE_PERIOD_256NS:
-            sts_key = 0xFFFEFFFE;
-            break;
+    case UWB_RADAR_PULSE_PERIOD_256NS:
+        sts_key = 0xFFFEFFFE;
+        break;
     }
 
     /**************************************SYS RADIO REG*********************************************/

--
Gitblit v1.9.3