Commit 18f8987a authored by hu's avatar hu

增加车速频率外发

parent 508926c2
...@@ -425,7 +425,7 @@ void BackLightDeal(BL_USER_PARA BL_FunPara, BL_STATE_PARA BLFunStatePara) ...@@ -425,7 +425,7 @@ void BackLightDeal(BL_USER_PARA BL_FunPara, BL_STATE_PARA BLFunStatePara)
//SetBacklightDestVal(LED_TEMPBL, BL_FunPara.BL_User_GaugesDuty); //SetBacklightDestVal(LED_TEMPBL, BL_FunPara.BL_User_GaugesDuty);
//Water_Temp_Led_R_MCU_OUT = 0u; //Water_Temp_Led_R_MCU_OUT = 0u;
} }
/*水温背光灯*/
if ((Coolant_Get_CurSeg() >= 11) && (K_Line_Set.K_Line_LID43 == 0x82u)) if ((Coolant_Get_CurSeg() >= 11) && (K_Line_Set.K_Line_LID43 == 0x82u))
{ {
SetBacklightDestVal(LED_TEMPBL, 0); SetBacklightDestVal(LED_TEMPBL, 0);
......
...@@ -348,5 +348,19 @@ void Data_GsLYbL_Speed_Processing(void) ...@@ -348,5 +348,19 @@ void Data_GsLYbL_Speed_Processing(void)
{ {
AccSubSpeed.GslSpeed_Flag = 0; AccSubSpeed.GslSpeed_Flag = 0;
} }
} }
}
//15925
//5096
void Drive_Info_Speed1_Plus_Conversion(void)
{
uint32_t Veh_Frequenc = 0u;
Veh_Frequenc = Cal_Veh_Frequency();
Veh_Frequenc *= 10u;
TimerB_PWM_Channel_Fre_Set(TIMERB_2_CH10, Veh_Frequenc, 500u);/*车速1 25*/
Veh_Frequenc = Veh_Frequenc * 5096 / 15925;
TimerB_PWM_Channel_Fre_Set(TIMERB_2_CH13, Veh_Frequenc, 500u);/*车速2 8*/
} }
\ No newline at end of file
...@@ -16,6 +16,8 @@ typedef union ...@@ -16,6 +16,8 @@ typedef union
uint8_t YblSpeed_Flag ; uint8_t YblSpeed_Flag ;
uint8_t GslYbl_Flag ; uint8_t GslYbl_Flag ;
uint8_t ACCSpeed_Time ; uint8_t ACCSpeed_Time ;
uint8_t reserveS1;
uint8_t reserveS2;
} _ACCSUBSPEED; } _ACCSUBSPEED;
extern _ACCSUBSPEED AccSubSpeed; extern _ACCSUBSPEED AccSubSpeed;
...@@ -39,5 +41,6 @@ extern uint8_t Speed_Get_Valid(void); ...@@ -39,5 +41,6 @@ extern uint8_t Speed_Get_Valid(void);
extern uint8_t Speed_Get_CurSeg(void); extern uint8_t Speed_Get_CurSeg(void);
extern void Data_Acc_Speed_Processing(void); extern void Data_Acc_Speed_Processing(void);
extern void Data_GsLYbL_Speed_Processing(void); extern void Data_GsLYbL_Speed_Processing(void);
extern void Drive_Info_Speed1_Plus_Conversion(void);
#endif #endif
...@@ -247,6 +247,8 @@ void Sys_Run_Mode_100ms_Tasks(void) ...@@ -247,6 +247,8 @@ void Sys_Run_Mode_100ms_Tasks(void)
Common_Set_K_Line_Value(); Common_Set_K_Line_Value();
Common_DTC_Server(); Common_DTC_Server();
Drive_Info_Speed1_Plus_Conversion();
//YZHD_Count++; //YZHD_Count++;
//if (YZHD_Count == 20) //if (YZHD_Count == 20)
//{ //{
......
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