Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
29a6dbbd
Commit
29a6dbbd
authored
Aug 17, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zhengping' into 'dev'
Zhengping See merge request
!43
parents
aec14d44
563ae355
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
17 deletions
+21
-17
Data_VSpeed.c
Firmware/Source/Application/Data_VSpeed.c
+1
-11
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+11
-1
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+4
-0
Services_Mileage_User.c
Firmware/Source/Component/Mileage/Services_Mileage_User.c
+4
-4
UDS_ISO14229_Services.h
Firmware/Source/UDS/UDS_ISO14229_Services.h
+1
-1
No files found.
Firmware/Source/Application/Data_VSpeed.c
View file @
29a6dbbd
...
@@ -321,17 +321,7 @@ void Data_Vehicle_Speed_Processing_Service(void)
...
@@ -321,17 +321,7 @@ void Data_Vehicle_Speed_Processing_Service(void)
}
}
// 第3步:生成显示车速
// 第3步:生成显示车速
if
(
(
DataVSPeedDamping
.
Speed
>=
DataVSpeedHysteresis
)
||
(
DataVSPeedDamping
.
Speed
<
DATA_VSPEED_HYSTERESIS
)
)
DataVSpeedHysteresis
=
DataVSPeedDamping
.
Speed
;
{
DataVSpeedHysteresis
=
DataVSPeedDamping
.
Speed
;
}
else
{
if
(
DataVSpeedHysteresis
-
DataVSPeedDamping
.
Speed
>=
DATA_VSPEED_HYSTERESIS
)
{
DataVSpeedHysteresis
=
DataVSPeedDamping
.
Speed
;
}
}
VSpeedCal
=
(
uint32_t
)
DataVSpeedHysteresis
;
VSpeedCal
=
(
uint32_t
)
DataVSpeedHysteresis
;
...
...
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
29a6dbbd
...
@@ -3855,7 +3855,17 @@ void AMT630H_GUI_BACKGRAND_SelfCheck()
...
@@ -3855,7 +3855,17 @@ void AMT630H_GUI_BACKGRAND_SelfCheck()
AMT630H_GUI_TIME
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
());
AMT630H_GUI_TIME
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
());
AMT630H_GUI_Voltage
((
ADC_Read_Signal
(
ADC_CH_KL30_VOLTAGE
))
/
10
);
if
(
KL30_VOLTAGE_time
<
10
)
{
KL30_VOLTAGE_time
++
;
}
else
{
KL30_VOLTAGE_time
=
0
;
KL30_VOLTAGE_Value
=
(
ADC_Read_Signal
(
ADC_CH_KL30_VOLTAGE
))
/
10
;
}
AMT630H_GUI_Voltage
(
KL30_VOLTAGE_Value
);
// AMT630H_GUI_Telephone(Telephone);
// AMT630H_GUI_Telephone(Telephone);
/*里程 无自检*/
/*里程 无自检*/
...
...
Firmware/Source/Component/Key/Key_user.c
View file @
29a6dbbd
...
@@ -21,6 +21,10 @@ void Key_Operation_Left(Key_Event_en_t enKeyEvent)//选择
...
@@ -21,6 +21,10 @@ void Key_Operation_Left(Key_Event_en_t enKeyEvent)//选择
case
KEY_EVENT_SHORT_PRESS_2
:
case
KEY_EVENT_SHORT_PRESS_2
:
break
;
break
;
case
KEY_EVENT_LONG_PRESS_1
:
//2
case
KEY_EVENT_LONG_PRESS_1
:
//2
if
(
Get_Dis_OdoAndTrip
()
==
1
)
{
Data_Clear_Trip
(
1
);
}
break
;
break
;
case
KEY_EVENT_LONG_PRESS_2
:
//3
case
KEY_EVENT_LONG_PRESS_2
:
//3
break
;
break
;
...
...
Firmware/Source/Component/Mileage/Services_Mileage_User.c
View file @
29a6dbbd
...
@@ -218,15 +218,15 @@ uint32_t Get_Trip_Value(void)
...
@@ -218,15 +218,15 @@ uint32_t Get_Trip_Value(void)
uint32_t
Trip
=
0
;
uint32_t
Trip
=
0
;
if
(
Get_Dis_Unit
()
==
0
)
/* 公制 */
if
(
Get_Dis_Unit
()
==
0
)
/* 公制 */
{
{
Trip
=
Data_Read_Trip
(
EM_TRIP_
A
);
Trip
=
Data_Read_Trip
(
EM_TRIP_
B
);
}
}
else
if
(
Get_Dis_Unit
()
==
1
)
/* 英制 */
else
if
(
Get_Dis_Unit
()
==
1
)
/* 英制 */
{
{
Trip
=
Data_Km_To_Mile
(
Data_Read_Trip
(
EM_TRIP_
A
));
Trip
=
Data_Km_To_Mile
(
Data_Read_Trip
(
EM_TRIP_
B
));
}
}
else
/* 无效值,按照公里处理,理论上不会执行到这 */
else
/* 无效值,按照公里处理,理论上不会执行到这 */
{
{
Trip
=
Data_Read_Trip
(
EM_TRIP_
A
);
Trip
=
Data_Read_Trip
(
EM_TRIP_
B
);
}
}
return
Trip
;
return
Trip
;
}
}
...
@@ -239,7 +239,7 @@ void Trip_Clear_Km_Service(void)
...
@@ -239,7 +239,7 @@ void Trip_Clear_Km_Service(void)
{
{
if
(
Get_Dis_Unit
()
==
0
)
/* 公制 */
if
(
Get_Dis_Unit
()
==
0
)
/* 公制 */
{
{
if
(
Data_Read_Trip
(
EM_TRIP_
A
)
>
9999
)
/* 当前单位在KM时,里程大于999.9KM进行清零 */
if
(
Data_Read_Trip
(
EM_TRIP_
B
)
>
9999
)
/* 当前单位在KM时,里程大于999.9KM进行清零 */
{
{
Data_Clear_Trip_All
();
Data_Clear_Trip_All
();
}
}
...
...
Firmware/Source/UDS/UDS_ISO14229_Services.h
View file @
29a6dbbd
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
/******************************************************************************
/******************************************************************************
program version
program version
*******************************************************************************/
*******************************************************************************/
#define SWV 0x10
0
// 0x100 = 1.00 software version 软件版本号
#define SWV 0x10
2
// 0x100 = 1.00 software version 软件版本号
#define HWV 0x100 // 0x100 = 1.00 hardware version 硬件版本号
#define HWV 0x100 // 0x100 = 1.00 hardware version 硬件版本号
#define BTV 0x100 // 0x100 = 1.00 bootloader version boot程序版本号
#define BTV 0x100 // 0x100 = 1.00 bootloader version boot程序版本号
...
...
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