Commit b1b4b28f authored by 时昊's avatar 时昊

feat:40589修改超速报警是无效值时的策略

parent 63a21d60
...@@ -449,9 +449,13 @@ void Popups_Polling(void) ...@@ -449,9 +449,13 @@ void Popups_Polling(void)
{ {
Popup_Request(POPUP_Over_Speed); Popup_Request(POPUP_Over_Speed);
} }
if(m_Vspeed <= (Over_Speed_Config - 30))
if(Over_Speed_Config >= 30)
{ {
PopupAndSound_Delete(POPUP_Over_Speed); if(m_Vspeed <= (Over_Speed_Config - 30))
{
PopupAndSound_Delete(POPUP_Over_Speed);
}
} }
} }
else else
......
...@@ -104,15 +104,18 @@ void Gauge_VSpeed_Display(void) ...@@ -104,15 +104,18 @@ void Gauge_VSpeed_Display(void)
{ {
if(Gauge_VSpeed_Display_Flag == 1) if(Gauge_VSpeed_Display_Flag == 1)
{ {
if(Common_Get_Disp_V_Speed( ) <= (Over_Speed_Config - 30)) if(Over_Speed_Config >= 30)
{ {
SEG_SET_VSpeed_NUM(1u, VSpeedDisplayValue/10); if(Common_Get_Disp_V_Speed( ) <= (Over_Speed_Config - 30))
Gauge_VSpeed_Display_Flag = 0; {
SEG_SET_VSpeed_NUM(1u, VSpeedDisplayValue/10);
Gauge_VSpeed_Display_Flag = 0;
}
else
{
SEG_SET_VSpeed_NUM(FLASH_SYNC_1Hz, VSpeedDisplayValue/10);
}
} }
else
{
SEG_SET_VSpeed_NUM(FLASH_SYNC_1Hz, VSpeedDisplayValue/10);
}
} }
else else
{ {
...@@ -176,6 +179,7 @@ uint16_t Get_Over_Speed_Config(uint8_t Para0) ...@@ -176,6 +179,7 @@ uint16_t Get_Over_Speed_Config(uint8_t Para0)
Ret = 1009; Ret = 1009;
break; break;
default: default:
Ret = 0xffff;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment