zhunk 1 anno fa
parent
commit
48784ca445

+ 14 - 6
Application_cbd_apm32f1/applications/control.c

@@ -1093,8 +1093,7 @@ void HardWare_Init(uint8_t boot)
         //关闭下仓门电机
         //关闭下仓门电机
         ctr_cangmen_down(OFF);
         ctr_cangmen_down(OFF);
     }
     }
-    //关闭镇流器
-    if(device_status.autotakepic==0)
+
     ctr_lamp(OFF,1);
     ctr_lamp(OFF,1);
 
 
     //关闭加热
     //关闭加热
@@ -1308,6 +1307,8 @@ void WorkCheck(void)
 //拍照性诱工作任务流程
 //拍照性诱工作任务流程
 void WorkTask_XYV3(void)
 void WorkTask_XYV3(void)
 {
 {
+    static uint8_t gaoya_on = 0;
+    static uint8_t gaoya_on_sec = 0;
     rt_uint32_t cal_n = device_status.cul_time * 60;
     rt_uint32_t cal_n = device_status.cul_time * 60;
     LOG_I("工作状态:%d",device_status.work_status);
     LOG_I("工作状态:%d",device_status.work_status);
     LOG_I("开关机状态:%d",device_status.ds);
     LOG_I("开关机状态:%d",device_status.ds);
@@ -1334,11 +1335,18 @@ void WorkTask_XYV3(void)
                 device_status.photo_ws = 2;
                 device_status.photo_ws = 2;
                 cal_n = device_status.cul_time * 60;
                 cal_n = device_status.cul_time * 60;
             }
             }
-            if(cal_n%1200==0)    //每隔20分钟高压通电30S
+            if(cal_n>1000&&cal_n%1200==0)    //每隔20分钟高压通电30S
             {
             {
                 ctr_lamp(ON, 1);
                 ctr_lamp(ON, 1);
-            }else if (cal_n%1230==0) {
-                ctr_lamp(OFF, 1);
+                gaoya_on = 1;
+            }
+            if(gaoya_on){
+                gaoya_on_sec++;
+                if(gaoya_on_sec>30){
+                    gaoya_on=0;
+                    gaoya_on_sec = 0;
+                    ctr_lamp(OFF, 1);
+                }
             }
             }
             if(device_status.temp_status==1 || device_status.bat_status==1 || device_status.work_status==0){
             if(device_status.temp_status==1 || device_status.bat_status==1 || device_status.work_status==0){
                 ctr_lamp(OFF, 1);
                 ctr_lamp(OFF, 1);
@@ -1511,7 +1519,7 @@ static void Control_Heat_thread_entry(void *parameter) {
             {
             {
                 LOG_E("高压持续超过5秒!");
                 LOG_E("高压持续超过5秒!");
                 // 执行关闭高压操作(示例函数)
                 // 执行关闭高压操作(示例函数)
-                ctr_lamp(OFF, 1);
+                //ctr_lamp(OFF, 1);
                 // 可选:自动复位保护
                 // 可选:自动复位保护
 //                rt_thread_mdelay(10000);    // 等待10秒
 //                rt_thread_mdelay(10000);    // 等待10秒
 //                ctr_lamp(ON, 1);
 //                ctr_lamp(ON, 1);

+ 1 - 1
Application_cbd_apm32f1/applications/control.h

@@ -25,7 +25,7 @@
 
 
 ////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////
 
 
-#define VERSION  "2.4.5"
+#define VERSION  "2.5.6"
 
 
 
 
 extern rt_event_t event_485_play;
 extern rt_event_t event_485_play;

+ 3 - 0
Application_cbd_apm32f1/readme.md

@@ -1,3 +1,6 @@
+# 2025-09-03 更新说明
+	版本:2.5.5
+	1. 修复工作状态下无法测试高压放电的情况;
 # 2025-08-14 更新说明
 # 2025-08-14 更新说明
 	版本:2.4.5
 	版本:2.4.5
 	1. 修复重启时间未同步就断电的问题
 	1. 修复重启时间未同步就断电的问题