Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
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
ISUZU
VC66_7C
Commits
7c419289
Commit
7c419289
authored
Oct 27, 2021
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加气压表配置功能
parent
e6df2277
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22331 additions
and
22314 deletions
+22331
-22314
project
ghs/project
+0
-0
project.hex
ghs/project.hex
+22076
-22069
project.siz
ghs/project.siz
+1
-1
Data_AirPressure.c
source/Application/APP/Data_AirPressure/Data_AirPressure.c
+30
-17
Data_Fuel_User.c
source/Application/APP/Data_Fuel/Data_Fuel_User.c
+115
-130
GaugesInterface.c
source/Application/APP/GaugesMode/GaugesInterface.c
+109
-97
No files found.
ghs/project
View file @
7c419289
No preview for this file type
ghs/project.hex
View file @
7c419289
This diff is collapsed.
Click to expand it.
ghs/project.siz
View file @
7c419289
project .intvect 1536
project .text 297
64
4
project .text 297
88
4
project .rodata 412311
project .secinfo 120
project .syscall 6
...
...
source/Application/APP/Data_AirPressure/Data_AirPressure.c
View file @
7c419289
...
...
@@ -4,27 +4,26 @@
#include "CAN_Communication_Matrix.h"
#include "RTE_ADC.h"
//-------------------------------------------
//主负气压 数据处理 wangboyu
//-------------------------------------------
#include "Common_Interface.h"
//断码显示
//-------------------------------------------
//344 - 3.1.2.FRONT/REAR空气计显示
//342 - 3.3. FRONT/REAR气压指针
//-------------------------------------------
#define
PRI_ID
0
#define
SEC_ID
1
#define
PRI_ID
0
#define
SEC_ID
1
#define
TableLenMax
6u
#define
TableLenMax
6u
#define EnTable
0 // 0 - 计算 1 - 查表
#define EnTable
0 // 0 - 计算 1 - 查表
#define
VALID_TIME
100 // 2S
#define
VALID_TIME
100 // 2S
static
struct
{
uint8_t
SumCnt
;
uint8_t
SumCnt
;
uint32_t
Voltage
;
uint16_t
Result
;
}
AirPressureFilter
[
2u
]
;
...
...
@@ -57,23 +56,23 @@ void AirPressure_KL30_Init(void)
{
uint8_t
i
=
0
;
uint32_t
u32slope
=
0
;
AirPressureVariable
.
VoltageTable
[
0
]
=
500
;
AirPressureVariable
.
VoltageTable
[
0
]
=
500
;
AirPressureVariable
.
kPaTable
[
0
]
=
0
;
AirPressureVariable
.
VoltageTable
[
1
]
=
1750
;
AirPressureVariable
.
VoltageTable
[
1
]
=
1750
;
AirPressureVariable
.
kPaTable
[
1
]
=
500
;
AirPressureVariable
.
VoltageTable
[
2
]
=
1960
;
AirPressureVariable
.
VoltageTable
[
2
]
=
1960
;
AirPressureVariable
.
kPaTable
[
2
]
=
583
;
AirPressureVariable
.
VoltageTable
[
3
]
=
2000
;
AirPressureVariable
.
VoltageTable
[
3
]
=
2000
;
AirPressureVariable
.
kPaTable
[
3
]
=
600
;
AirPressureVariable
.
VoltageTable
[
4
]
=
3000
;
AirPressureVariable
.
VoltageTable
[
4
]
=
3000
;
AirPressureVariable
.
kPaTable
[
4
]
=
1000
;
AirPressureVariable
.
VoltageTable
[
5
]
=
4250
;
AirPressureVariable
.
VoltageTable
[
5
]
=
4250
;
AirPressureVariable
.
kPaTable
[
5
]
=
1500
;
for
(
i
=
0
;
i
<
(
TableLenMax
-
1
);
i
++
)
...
...
@@ -256,8 +255,22 @@ void AirPressure_AdcData_Filter(void)
uint16_t
PriVoltage
=
0
;
uint16_t
SecVoltage
=
0
;
u8PriValid
=
RTE_Read_PRIMARY_AIR_Valid
();
u8SecValid
=
RTE_Read_SECONDARY_AIR_Valid
();
if
((
K_Line_Set
.
K_Line_LID42
==
0x00
)
||
(
K_Line_Set
.
K_Line_LID42
==
0x02
))
{
u8PriValid
=
RTE_Read_PRIMARY_AIR_Valid
();
u8SecValid
=
RTE_Read_SECONDARY_AIR_Valid
();
}
else
if
((
K_Line_Set
.
K_Line_LID42
==
0x01
)
||
(
K_Line_Set
.
K_Line_LID42
==
0x03
))
{
u8PriValid
=
RTE_Read_SECONDARY_AIR_Valid
();
u8SecValid
=
RTE_Read_PRIMARY_AIR_Valid
();
}
else
/*配置无效时*/
{
u8PriValid
=
RTE_Read_PRIMARY_AIR_Valid
();
u8SecValid
=
RTE_Read_SECONDARY_AIR_Valid
();
}
if
(
u8PriValid
)
{
if
(
AirPressureFilter
[
PRI_ID
].
SumCnt
<
10
)
...
...
source/Application/APP/Data_Fuel/Data_Fuel_User.c
View file @
7c419289
This diff is collapsed.
Click to expand it.
source/Application/APP/GaugesMode/GaugesInterface.c
View file @
7c419289
This diff is collapsed.
Click to expand it.
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