Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
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
TY
TianYing_ty100
Commits
d26a926e
Commit
d26a926e
authored
Jul 24, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:52817 AliveCounter信号,仪表重新上电,第一帧发送到数据错误
parent
816950cb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
Can_App.c
Firmware/Source/Application/CAN_User/Can_App.c
+1
-8
Can_App.h
Firmware/Source/Application/CAN_User/Can_App.h
+1
-0
Can_User.c
Firmware/Source/Application/CAN_User/Can_User.c
+8
-0
No files found.
Firmware/Source/Application/CAN_User/Can_App.c
View file @
d26a926e
...
@@ -28,14 +28,7 @@ void Can_Set_Buff_220(canlib_uint8_t CopyData[])
...
@@ -28,14 +28,7 @@ void Can_Set_Buff_220(canlib_uint8_t CopyData[])
p220
->
Sig
.
CheckSum
=
(
Get_Dis_Tcs_Val
()
==
1
)
?
8
:
0
;
p220
->
Sig
.
CheckSum
=
(
Get_Dis_Tcs_Val
()
==
1
)
?
8
:
0
;
}
}
if
(
AliveCountTimer
<
7
)
{
AliveCountTimer
++
;
}
else
{
AliveCountTimer
=
0
;
}
}
}
void
Can_Set_Buff_6EE
(
canlib_uint8_t
CopyData
[])
void
Can_Set_Buff_6EE
(
canlib_uint8_t
CopyData
[])
...
...
Firmware/Source/Application/CAN_User/Can_App.h
View file @
d26a926e
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#include "Application.h"
#include "Application.h"
#include "Components.h"
#include "Components.h"
extern
uint16_t
AliveCountTimer
;
typedef
union
typedef
union
{
{
...
...
Firmware/Source/Application/CAN_User/Can_User.c
View file @
d26a926e
...
@@ -349,6 +349,14 @@ uint8_t COM_APP_Process(st_CAN_Msg *Msg)
...
@@ -349,6 +349,14 @@ uint8_t COM_APP_Process(st_CAN_Msg *Msg)
break
;
break
;
case
0x220
:
case
0x220
:
CAN_result
=
CAN_Transmit
(
CAN0MSG10
,
&
CAN_SendMsg
);
CAN_result
=
CAN_Transmit
(
CAN0MSG10
,
&
CAN_SendMsg
);
if
(
AliveCountTimer
<
7
)
{
AliveCountTimer
++
;
}
else
{
AliveCountTimer
=
0
;
}
break
;
break
;
#if (IC_Current == TY200_080000b_ty)
#if (IC_Current == TY200_080000b_ty)
case
0x580
:
case
0x580
:
...
...
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