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
70d15490
Commit
70d15490
authored
Mar 06, 2025
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:30电初始化调整初始化顺序
parent
24428b40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
SEG_DISPLAY.c
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
+1
-7
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+3
-3
No files found.
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
View file @
70d15490
...
...
@@ -4573,13 +4573,7 @@ void Checkself_SEG_Display(void)
Fuel
=
Checkself_SEG_step
/
5u
;
collant
=
100
+
((
Checkself_SEG_step
/
3
)
*
11
);
Espeed
=
(
Checkself_SEG_step
*
5
/
6
)
*
500
;
//Vspeed = ((Checkself_SEG_step / 3) * 11) + 100;
if
((
uint8_t
)((
float
)
Checkself_SEG_step
/
2
.
72
)
==
0
)
{
Vspeed
=
0
;
}
else
{
Vspeed
=
(((
uint8_t
)((
float
)
Checkself_SEG_step
/
2
.
72
)
-
1
)
*
11
)
+
100
;
}
Vspeed
=
((
Checkself_SEG_step
/
3
)
*
11
)
+
100
;
ODO
=
((
Checkself_SEG_step
/
3
)
*
11111
)
+
100000
;
hour
=
(
Checkself_SEG_step
/
3
)
*
11
;
min
=
(
Checkself_SEG_step
/
3
)
*
11
;
...
...
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
70d15490
...
...
@@ -50,13 +50,13 @@ static void Power_KL30_Init(void)
ClearODO_Flag
=
0
;
Gpio_Init
(
Gpio_KL30_Init
);
Analog_Signal_Conv_Init
();
Can_Init
();
CAN_TX_Init
();
Sys_KL30_Init
();
Simulated_IIC_2_Init
();
eeprom_StoreInfo_Init
();
Can_Init
();
Data_TPMS_KL30_Init
();
CAN_TX_Init
();
//CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Enable);
DFlash_init
();
Data_Read_DiagPara
();
...
...
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