|
|
@@ -1583,6 +1583,10 @@ void HardWare_Init(uint8_t boot)
|
|
|
//关闭12V供电(海康相机,RTU)
|
|
|
ctr_photo(OFF);
|
|
|
|
|
|
+ //关闭清扫电机驱动
|
|
|
+ ctr_clear(OFF);
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
//拍照
|
|
|
void HK_TakePhoto(void)
|
|
|
@@ -2702,38 +2706,43 @@ static void Control_Heat_thread_entry(void *parameter)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- LOG_I("Not calorstat!");
|
|
|
- }
|
|
|
- if(device_status.work_status==1&&device_status.version_type==5)
|
|
|
- {
|
|
|
- var_clear++;
|
|
|
- if(var_clear==300)
|
|
|
+ LOG_I("Not calorstat!-%d",device_status.selfcheck_ws);
|
|
|
+ if(device_status.selfcheck_ws==2)
|
|
|
{
|
|
|
- var_clear = 0;
|
|
|
- ctr_cangmen_down(ON);
|
|
|
- rt_thread_mdelay(5000);
|
|
|
- ctr_cangmen_down(OFF);
|
|
|
- rt_thread_mdelay(500);
|
|
|
- ctr_cangmen_down(ON);
|
|
|
- rt_thread_mdelay(5000);
|
|
|
- ctr_cangmen_down(OFF);
|
|
|
- }
|
|
|
- }
|
|
|
- if(device_status.selfcheck_ws==2)
|
|
|
- {
|
|
|
- static int total_seconds = 200;
|
|
|
- static int current_second = 0;
|
|
|
- while(current_second <= total_seconds)
|
|
|
- {
|
|
|
- int process = (current_second * 100) / total_seconds;
|
|
|
- device_status.process = process / 100.0;
|
|
|
- LOG_I("process:%d",process);
|
|
|
- HMI_WRITE("selfcheck.s106.val=%d",process);
|
|
|
- rt_thread_delay(1000);
|
|
|
- current_second++;
|
|
|
+ static int total_seconds = 200;
|
|
|
+ static int current_second = 0;
|
|
|
+ while(current_second <= total_seconds)
|
|
|
+ {
|
|
|
+ int process = (current_second * 100) / total_seconds;
|
|
|
+ device_status.process = process / 100.0;
|
|
|
+ LOG_I("process:%d",process);
|
|
|
+ HMI_WRITE("selfcheck.s106.val=%d",process);
|
|
|
+ rt_thread_delay(1000);
|
|
|
+ current_second++;
|
|
|
+ if(device_status.selfcheck_ws==0)
|
|
|
+ {
|
|
|
+ HMI_WRITE("selfcheck.s106.val=1");
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- device_status.selfcheck_ws = 0;
|
|
|
}
|
|
|
+// if(device_status.work_status==1&&device_status.version_type==5)
|
|
|
+// {
|
|
|
+// var_clear++;
|
|
|
+// if(var_clear==300)
|
|
|
+// {
|
|
|
+// var_clear = 0;
|
|
|
+// ctr_cangmen_down(ON);
|
|
|
+// rt_thread_mdelay(5000);
|
|
|
+// ctr_cangmen_down(OFF);
|
|
|
+// rt_thread_mdelay(500);
|
|
|
+// ctr_cangmen_down(ON);
|
|
|
+// rt_thread_mdelay(5000);
|
|
|
+// ctr_cangmen_down(OFF);
|
|
|
+// }
|
|
|
+// }
|
|
|
+
|
|
|
rt_thread_delay(1000);
|
|
|
#endif
|
|
|
#endif
|