From 99eaec345d1e374b5d2a4618a3db76d56118ed14 Mon Sep 17 00:00:00 2001 From: lijianshuang <jianshuang.li@hljtyw.com> Date: Thu, 29 Aug 2024 17:40:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=E4=BE=9D=E6=8D=AE=E6=A8=AA?= =?UTF-8?q?=E5=B1=95=EF=BC=8C=E8=BD=AC=E9=80=9F200ms=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E3=80=82=E5=88=A0=E9=99=A4=E5=B1=8F=E8=94=BD=E7=9A=84=E4=B8=8D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Application/GUI_Display/GUI_Display.c | 18 ++++++++----- Firmware/Source/System/Sys_Task_List.c | 26 +++++++++---------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/Firmware/Source/Application/GUI_Display/GUI_Display.c b/Firmware/Source/Application/GUI_Display/GUI_Display.c index 0c709ae..020cb0d 100644 --- a/Firmware/Source/Application/GUI_Display/GUI_Display.c +++ b/Firmware/Source/Application/GUI_Display/GUI_Display.c @@ -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(); diff --git a/Firmware/Source/System/Sys_Task_List.c b/Firmware/Source/System/Sys_Task_List.c index 8a4cb27..320a8ee 100644 --- a/Firmware/Source/System/Sys_Task_List.c +++ b/Firmware/Source/System/Sys_Task_List.c @@ -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++; + } -- 2.23.0