Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈家乐
jiancetai
Commits
c7e6af09
Commit
c7e6af09
authored
Aug 20, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:根据仪表同步修改TCS逻辑
parent
696970f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
CAN_APP.c
YueJin_test_bench/source/Appliciation/CAN_APP.c
+15
-3
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+1
-1
No files found.
YueJin_test_bench/source/Appliciation/CAN_APP.c
View file @
c7e6af09
...
@@ -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
.
T
cs_Control
=
0
;
pCANMsg
->
Sig
.
T
CS
=
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
.
T
cs_Control
=
1
;
pCANMsg
->
Sig
.
T
CS
=
1
;
}
}
}
}
...
...
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
c7e6af09
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment