Commit fa19fc03 authored by 时昊's avatar 时昊

feat:增加超速报警标志位

parent 27207d34
......@@ -12,7 +12,7 @@
uint8_t OverSpeed;
uint8_t Over_Speed_Status;
uint8_t OIL_Low_popup_flag;
uint8_t RADAR_SOUND; /*雷达声音*/
......@@ -448,6 +448,7 @@ void Popups_Polling(void)
if ( m_Vspeed > Over_Speed_Config )
{
Popup_Request(POPUP_Over_Speed);
Over_Speed_Status = 1;
}
if(Over_Speed_Config >= 30)
......@@ -455,12 +456,14 @@ void Popups_Polling(void)
if(m_Vspeed <= (Over_Speed_Config - 30))
{
PopupAndSound_Delete(POPUP_Over_Speed);
Over_Speed_Status = 0;
}
}
}
else
{
PopupAndSound_Delete(POPUP_Over_Speed);
Over_Speed_Status = 0;
}
/*雷达距离声音提示*/
......
......@@ -12,6 +12,7 @@
#include "Common_Interface.h"
#include "Telltales_user.h"
extern uint8_t Over_Speed_Status;
RTC_Time_st_t RTCTimeCurrent;
extern uint32_t Factory_ClearOdo_Display_Flag;
BattCurr_st_t BattCurr;
......@@ -104,18 +105,15 @@ void Gauge_VSpeed_Display(void)
{
if(Gauge_VSpeed_Display_Flag == 1)
{
if(Over_Speed_Config >= 30)
if(Over_Speed_Status == 1)
{
if(Common_Get_Disp_V_Speed( ) <= (Over_Speed_Config - 30))
{
SEG_SET_VSpeed_NUM(1u, VSpeedDisplayValue/10);
Gauge_VSpeed_Display_Flag = 0;
}
else
{
SEG_SET_VSpeed_NUM(FLASH_SYNC_1Hz, VSpeedDisplayValue/10);
}
SEG_SET_VSpeed_NUM(FLASH_SYNC_1Hz, VSpeedDisplayValue/10);
}
else
{
SEG_SET_VSpeed_NUM(1u, VSpeedDisplayValue/10);
Gauge_VSpeed_Display_Flag = 0;
}
}
else
{
......
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