heat80Gear,极限温度值判断改为-39摄氏度

This commit is contained in:
REASEARCHER\18383 2025-08-28 18:07:47 +08:00
parent 45d1feb490
commit f5415ea5e7
3 changed files with 22 additions and 4 deletions

View File

@ -24,7 +24,7 @@ static char ptz_temp_volt_current_fault_detect_task()
if ( g_ptz.fault_detect.Phase_curr_H != FAULT )
{
hori_fault++;
if ( hori_fault >= 10 )
if ( hori_fault >= 30 )
{
g_ptz.fault_detect.Phase_curr_H = FAULT;//水平电机相电流过大,报警
ptz_hori_stop(PTZ_HORI_STOP_TIME);
@ -41,7 +41,7 @@ static char ptz_temp_volt_current_fault_detect_task()
if ( g_ptz.fault_detect.Phase_curr_V != FAULT )
{
vert_fault++;
if ( vert_fault >= 10 )
if ( vert_fault >= 30 )
{
g_ptz.fault_detect.Phase_curr_V = FAULT;//垂直电机相电流过大,报警
ptz_vert_stop(PTZ_VERT_STOP_TIME);
@ -85,7 +85,7 @@ static char ptz_temp_volt_current_fault_detect_task()
g_ptz.fault_detect.temperature_fault = NO_FAULT;
}
//极限温度故障用于限制云台功能控制超过温度阈值10℃有效此时云台不能正常工作
if(g_ptz.temperature > (PTZ_TEMP_DETECT_MAX + 10.0) || g_ptz.temperature < (PTZ_TEMP_DETECT_MIN - 5.0) )
if(g_ptz.temperature > (PTZ_TEMP_DETECT_MAX + 10.0) || g_ptz.temperature < (PTZ_TEMP_DETECT_MIN - 9.0) )
{
max_temperature_fault = FAULT;
ptz_hori_stop(PTZ_HORI_STOP_TIME);

View File

@ -114,7 +114,7 @@
//相电流运行最大值
// #define PHASE_CURRENT 5.0
#define PHASE_CURRENT 15
#define PHASE_CURRENT 20.0
#endif
//L6235D涡轮蜗杆重型云台

18
Hyt2/PROJECT/.vscode/iar-vsc.json vendored Normal file
View File

@ -0,0 +1,18 @@
{
"workspace": {
"path": "${workspaceFolder}\\OS2.eww"
},
"workspaces": {
"${workspaceFolder}\\OS2.eww": {
"configs": {
"${workspaceFolder}\\OS2.ewp": "Debug"
},
"selected": {
"path": "${workspaceFolder}\\OS2.ewp"
}
}
},
"workbench": {
"path": "D:\\IAR"
}
}