|
|
@@ -1295,18 +1295,18 @@ static void HMI_Decode(void)
|
|
|
{
|
|
|
_485_play(sound122, 4);
|
|
|
HMI_WRITE("sysTest.result.txt=\"害虫测试!\"");
|
|
|
- ctr_Motor_Driver_Power(ON);
|
|
|
- ctr_xmove(400,200);//旋转清虫
|
|
|
+// ctr_Motor_Driver_Power(ON);
|
|
|
+// ctr_xmove(400,200);//旋转清虫
|
|
|
//使用硬件定时器控制
|
|
|
- //device_status.autotakepic = 10;
|
|
|
+ device_status.autotakepic = 10;
|
|
|
|
|
|
}else if(strstr(rx_buffer,"yichong")!=NULL)
|
|
|
{
|
|
|
_485_play(sound122, 4);
|
|
|
HMI_WRITE("sysTest.result.txt=\"益虫测试!\"");
|
|
|
- ctr_Motor_Driver_Power(ON);
|
|
|
- ctr_xmove(400,200);//旋转清虫
|
|
|
- //device_status.autotakepic = 11;
|
|
|
+// ctr_Motor_Driver_Power(ON);
|
|
|
+// ctr_xmove(400,200);//旋转清虫
|
|
|
+ device_status.autotakepic = 11;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1558,12 +1558,12 @@ static void Ctr_Mortor_entry(void* parameter)
|
|
|
ef_set_env_blob("run_sta", &device_status.run_sta, sizeof(device_status.run_sta));
|
|
|
}
|
|
|
else if (device_status.autotakepic==10) {
|
|
|
- hwtimer2_pwm3_output(1,10000,1,0);
|
|
|
+ hwtimer2_pwm3_output(1,20000,1,0);
|
|
|
device_status.autotakepic = 0;
|
|
|
}
|
|
|
|
|
|
else if (device_status.autotakepic==11) {
|
|
|
- hwtimer2_pwm3_output(1,10000,1,1);
|
|
|
+ hwtimer2_pwm3_output(1,20000,1,1);
|
|
|
device_status.autotakepic = 0;
|
|
|
}
|
|
|
|