Commit c7e6af09 authored by 何锐's avatar 何锐

feat:根据仪表同步修改TCS逻辑

parent 696970f1
...@@ -120,11 +120,17 @@ void Can_Set_Buff_042(uint8_t CopyData []) ...@@ -120,11 +120,17 @@ void Can_Set_Buff_042(uint8_t CopyData [])
if(Tcs == 1)/*TCS指示灯开启*/ if(Tcs == 1)/*TCS指示灯开启*/
{ {
pCANMsg->Sig.TCS = 0; pCANMsg->Sig.TCS = 0;
pCANMsg->Sig.Tcs_mode = 1; pCANMsg->Sig.Tcs_mode = 1;
} }
else if(Tcs == 2)/*禁止TCS指示灯开启*/ else if(Tcs == 2)/*禁止TCS指示灯开启*/
{ {
pCANMsg->Sig.Tcs_mode = 0; pCANMsg->Sig.Tcs_mode = 0;
pCANMsg->Sig.TCS = 1;
}
else if(Tcs == 3)/*全亮*/
{
pCANMsg->Sig.TCS = 0;
pCANMsg->Sig.Tcs_mode = 0;
} }
else/*熄灭*/ else/*熄灭*/
{ {
...@@ -665,16 +671,22 @@ void Can_Set_Buff_207(uint8_t CopyData []) ...@@ -665,16 +671,22 @@ void Can_Set_Buff_207(uint8_t CopyData [])
if(Tcs == 1) //TCS if(Tcs == 1) //TCS
{ {
pCANMsg->Sig.Tcs_mode = 1; pCANMsg->Sig.Tcs_mode = 1;
pCANMsg->Sig.Tcs_Control = 0; pCANMsg->Sig.TCS = 0;
} }
else if(Tcs == 2) //禁止TCS else if(Tcs == 2) //禁止TCS
{ {
pCANMsg->Sig.Tcs_mode = 0; pCANMsg->Sig.Tcs_mode = 0;
pCANMsg->Sig.TCS = 1;
}
else if(Tcs == 3) //禁止TCS
{
pCANMsg->Sig.Tcs_mode = 0;
pCANMsg->Sig.TCS = 0;
} }
else //熄灭 else //熄灭
{ {
pCANMsg->Sig.Tcs_mode = 1; pCANMsg->Sig.Tcs_mode = 1;
pCANMsg->Sig.Tcs_Control = 1; pCANMsg->Sig.TCS = 1;
} }
} }
......
...@@ -718,7 +718,7 @@ void User_CheckMode_Service(uint8_t CbkCycle) ...@@ -718,7 +718,7 @@ void User_CheckMode_Service(uint8_t CbkCycle)
Signal_GPS = 65; Signal_GPS = 65;
Eletricity = 1000; Eletricity = 1000;
Hour = 1; Hour = 1;
Tcs = 1; Tcs = 3;
Energy_recovery = 1; Energy_recovery = 1;
motor_hot = 1; motor_hot = 1;
Gear = 1; Gear = 1;
......
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