heat80Gear,修改参数
This commit is contained in:
parent
1029eff76d
commit
046c2e038e
|
@ -485,7 +485,7 @@ static char ptz_heat_data_collect_task()
|
|||
{
|
||||
ptz_heat_collect_adc1_task();
|
||||
|
||||
if ( g_ptz.electric_current > 6 ) //过流
|
||||
if ( g_ptz.electric_current > 6.0 ) //过流
|
||||
{
|
||||
overCurrTime++;
|
||||
}
|
||||
|
@ -494,7 +494,7 @@ static char ptz_heat_data_collect_task()
|
|||
currTime = 0;
|
||||
}
|
||||
//长时间过流
|
||||
if ( overCurrTime >= 20 ) //20*100ms=2s
|
||||
if ( overCurrTime >= 5 ) //5*100ms=500
|
||||
{
|
||||
heatFlag = 1; //禁止加热
|
||||
closeHeat();
|
||||
|
@ -512,7 +512,7 @@ static char ptz_heat_data_collect_task()
|
|||
currTime = 0;
|
||||
}
|
||||
//长时间电流正常
|
||||
if ( currTime >= 20 ) //20*100ms=2s
|
||||
if ( currTime >= 5 ) //20*100ms=2s
|
||||
{
|
||||
heatFlag = 0; //允许加热
|
||||
currTime = 0;
|
||||
|
|
|
@ -14,6 +14,7 @@ static char ptz_temp_volt_current_fault_detect_task()
|
|||
static unsigned short int time_ms;
|
||||
static unsigned char hori_fault;
|
||||
static unsigned char vert_fault;
|
||||
static uint32_t curOverCount = 0;
|
||||
|
||||
time_ms ++;
|
||||
if(time_ms < 50)
|
||||
|
@ -132,6 +133,25 @@ static char ptz_temp_volt_current_fault_detect_task()
|
|||
// //Ë«Öáת¶¯
|
||||
// if((g_ptz.hori_start_stop_set == PTZ_HORI_START) && (g_ptz.vert_start_stop_set == PTZ_VERT_START))
|
||||
// {
|
||||
if(g_ptz.electric_current >= PTZ_CURRENT_DETECT)
|
||||
{
|
||||
curOverCount++;
|
||||
if ( curOverCount >= 40 )
|
||||
{
|
||||
curOverCount = 0;
|
||||
g_ptz.fault_detect.electric_current_fault = FAULT;
|
||||
//如果电流故障应该停止电机转动
|
||||
ptz_hori_stop(PTZ_HORI_STOP_TIME);
|
||||
ptz_vert_stop(PTZ_VERT_STOP_TIME);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
curOverCount = 0;
|
||||
g_ptz.fault_detect.electric_current_fault = NO_FAULT;
|
||||
}
|
||||
|
||||
/*
|
||||
if(g_ptz.electric_current >= PTZ_CURRENT_DETECT)
|
||||
{
|
||||
g_ptz.fault_detect.electric_current_fault = FAULT;
|
||||
|
@ -141,6 +161,8 @@ static char ptz_temp_volt_current_fault_detect_task()
|
|||
}else{
|
||||
g_ptz.fault_detect.electric_current_fault = NO_FAULT;
|
||||
}
|
||||
*/
|
||||
|
||||
// }
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
#define PTZ_VOLT_DETECT_MIN 18.0//30.0
|
||||
|
||||
//¹¤×÷µçÁ÷ãÐÖµ
|
||||
#define PTZ_CURRENT_DETECT 7.5//5.0
|
||||
#define PTZ_CURRENT_DETECT 8.0//5.0
|
||||
|
||||
//»ô¶û¹ÊÕÏãÐÖµ
|
||||
#define PTZ_HALL_DETECT 30//30
|
||||
|
|
Loading…
Reference in New Issue