Commit 99eaec34 authored by 李俭双's avatar 李俭双

🐞 fix:依据横展,转速200ms刷新。删除屏蔽的不使用代码

parent c0f75547
......@@ -62,7 +62,7 @@ void Clear_Bu98(void)
}
}
uint8_t u8VspeedCount = 0;
void Gauge_Service(void)
{
static uint16_t VSpeed_Count = 0u;
......@@ -93,11 +93,7 @@ void Gauge_Service(void)
{
LED_Driver_Channel_Set(LampChannel_0, k, LED_OFF);
}
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_35_ODO, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_34_TRIP, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Screen_Time, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_08_KMH, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_09_MPH, LED_OFF);
}
}
else
......@@ -112,8 +108,16 @@ void Gauge_Service(void)
// BU98R10Chip1DDRAM.Byte[i] = 0x77;
//}
if(u8VspeedCount < 3)
{
u8VspeedCount ++ ;
}
else
{
u8VspeedCount = 0;
SEG_SET_VSpeed_NUM(1u, Get_DispVechileSpeed( ) / 10u,Get_Dis_KM_Unit());
}
SEG_SET_VSpeed_NUM(1u, Get_DispVechileSpeed( ) / 10u,Get_Dis_KM_Unit());
SEG_SET_ODO_TRIP_FAULTCODE_TCS_DIS(Get_Dis_KM_Unit(), Get_ODO_Value() / 10u, Get_Trip_Value());
Gauge_Clock_Display();
......
......@@ -37,13 +37,12 @@ void Sys_5ms_Tasks(void)
{
Flash_Sync_Signal_Generation_Service();
}
}
//uint8_t ljs_buf[200] = {0};
void Sys_10ms_Tasks(void)
{
//memset(ljs_buf, 0x55, 200);
Line_In_Debounce_Service(10u);
{
Line_In_Debounce_Service(10u);
if(Common_GetIgnOnTime() >= 3000)
{
Key_Service();
......@@ -57,7 +56,7 @@ void Sys_10ms_Tasks(void)
Data_TPMS_Processing_Service();
Protocol_Service();
Protocol_Send_Service();
//Uart0_IntSend(ljs_buf, 200) ;
FaultCode_Service(10u);
}
......@@ -68,14 +67,14 @@ void Sys_20ms_Tasks(void)
Data_Vehicle_Speed_Processing_Service();
Data_Engine_Speed_Processing_Service();
Data_Coolant_Temp_Processing_Service();
//Data_Voltage_Processing_Service();
BU98R10_Update_Request();
}
void Sys_50ms_Tasks(void)
{
// BU98R10_Update_Request();
LED_Driver_Scan_Refresh();
Telltales_Management();
Gauge_Service();
......@@ -83,7 +82,7 @@ void Sys_50ms_Tasks(void)
}
uint8_t u8LEDDriverCheckCount = 0U;
//uint16_t ljs_voltage = 0;
void Sys_100ms_Tasks(void)
{
if((PageType != Page_Time_Hour)&&(PageType != Page_Time_Minute))
......@@ -97,10 +96,9 @@ void Sys_100ms_Tasks(void)
BackLight_Process();
Services_Mileage_Callback();
Data_Voltage_Processing_Service();
S3_ServerCNTT();
//ECU_FaultCode_Processing_Service();
S3_ServerCNTT();
Send_UUID_To_Esp32();
//ljs_voltage = ADC_Conv_Single_Channel(ADC_CH_KL15_VOLTAGE);
if (u8LEDDriverCheckCount >= 10U)
{
u8LEDDriverCheckCount = 0U;
......@@ -119,7 +117,7 @@ void Sys_100ms_Tasks(void)
{
CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Disable);
}
//R_test = ADC_Read_Signal(ADC_CH_FUEL1);
}
......@@ -140,5 +138,5 @@ void Sys_Exact_50us_Tasks(void)
task_1ms =0U;
eeprom_1ms_timeCount( );
}
//u32YZHDCount++;
}
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