zhunk hace 1 año
padre
commit
154bb11357

+ 4 - 4
Application_CBD/.settings/projcfg.ini

@@ -1,9 +1,9 @@
 #RT-Thread Studio Project Configuration
-#Wed Feb 22 16:39:11 CST 2023
-output_project_path=D\:\\RT-ThreadStudio\\workspace\\Application_CBD
+#Tue Mar 18 09:20:41 CST 2025
 mcu_name=STM32F103RETX
-hardware_adapter=ST-LINK
-mcu_base_nano_proj=false
+output_project_path=D\:\\RT-ThreadStudio\\workspace\\Application_CBD
+hardware_adapter=J-Link
 selected_rtt_version=v4.0.2
+mcu_base_nano_proj=false
 project_base_bsp=false
 cfg_version=v2.0

+ 5 - 2
Application_CBD/applications/hmi.c

@@ -442,12 +442,16 @@ static void HMI_Decode(void)
     }
     //拍照
     else if(strstr(rx_buffer,"putTest.switchPhoto=1")!=NULL) {
+        device_status.photo_ws = 0;
+        rt_thread_delay(500);
         device_status.photo_ws = 1;
         char *photo = makeJson_Warn("takephoto","control");
         DTU_Write("%s",photo);
         rt_free(photo);
     }
     else if (strstr(rx_buffer,"putTest.switchPic=1")!=NULL) {
+        device_status.photo_ws = 0;
+        rt_thread_delay(500);
         device_status.photo_ws = 1;
         char *photo = makeJson_Warn("takephoto","control");
         DTU_Write("%s",photo);
@@ -1454,7 +1458,6 @@ static void HMI_Decode(void)
 //入口函数-电机控制及
 static void Ctr_Mortor_entry(void* parameter)
 {
-   rt_int16_t motor_current = 0;     //
    rt_uint16_t num_up_open = 200;    //20s
    rt_uint16_t num_up_close = 200;   //
    rt_uint16_t num_down_open = 200;  //
@@ -1606,7 +1609,7 @@ static void Ctr_Mortor_entry(void* parameter)
             if(photo_led_sec==900)
                 ctr_led(ON);
             //打开补光灯
-            if(photo_led_sec==800)
+            if(photo_led_sec==880)
             {
                 LOG_I("测试拍照!");
                 #if 1

+ 2 - 0
Application_CBD/readme.md

@@ -1,3 +1,5 @@
+
+# 2025-03-18 更新
 # 2025-02-17 更新说明
 #define VERSION_GK          "1.43.1(GK)"             //1.0高空
 1. 取消针对高空测报灯的灯管检测功能字段展示;