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
c25b3e33
Commit
c25b3e33
authored
3 years ago
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用函数
parent
7443c284
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
22263 additions
and
22805 deletions
+22263
-22805
Application.gpj
ghs/group/Application.gpj
+0
-2
project
ghs/project
+0
-0
project.hex
ghs/project.hex
+22130
-22156
project.siz
ghs/project.siz
+2
-2
Data_CoolantTemperature.c
...ion/APP/Data_CoolantTemperature/Data_CoolantTemperature.c
+1
-1
Data_Fuel_User.c
source/Application/APP/Data_Fuel/Data_Fuel_User.c
+1
-1
Data_Voltmeter.c
source/Application/APP/Data_Voltmeter/Data_Voltmeter.c
+85
-85
Data_WET.c
source/Application/APP/Data_WET/Data_WET.c
+43
-43
Individual_ECU_Comm.c
...Application/APP/Individual_ECU_Comm/Individual_ECU_Comm.c
+0
-368
Individual_ECU_Comm.h
...Application/APP/Individual_ECU_Comm/Individual_ECU_Comm.h
+0
-62
PowerManagement_user.c
...ce/Application/APP/PowerManagement/PowerManagement_user.c
+0
-2
CAN_Communication_Matrix.c
...Application/CAN_APP_NM/CAN_App/CAN_Communication_Matrix.c
+1
-2
CAN_FUNC.c
source/Application/CAN_APP_NM/CAN_App/CAN_FUNC.c
+0
-79
tasks.c
source/System/tasks.c
+0
-2
No files found.
ghs/group/Application.gpj
View file @
c25b3e33
...
...
@@ -55,8 +55,6 @@
.\APP\Data_Voltmeter\Data_Voltmeter.h
.\APP\Data_WET\Data_WET.c
.\APP\Data_WET\Data_WET.h
.\APP\Individual_ECU_Comm\Individual_ECU_Comm.c
.\APP\Individual_ECU_Comm\Individual_ECU_Comm.h
.\APP\Data_FuelConsump\Data_FuelConsump.c
.\APP\Data_FuelConsump\Data_FuelConsump.h
.\APP\Data_Interval\Services_Interval.c
...
...
This diff is collapsed.
Click to expand it.
ghs/project
View file @
c25b3e33
No preview for this file type
This diff is collapsed.
Click to expand it.
ghs/project.hex
View file @
c25b3e33
This diff is collapsed.
Click to expand it.
ghs/project.siz
View file @
c25b3e33
project .intvect 1536
project .text 3
10124
project .rodata 4108
79
project .text 3
09372
project .rodata 4108
15
project .secinfo 120
project .syscall 6
project .romdata 9045
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/Data_CoolantTemperature/Data_CoolantTemperature.c
View file @
c25b3e33
...
...
@@ -3,7 +3,7 @@
#include "GaugesInterface.h"
#include "GPIO.h"
//-------------------------------------------
//水温数据处理
wangboyu
//水温数据处理
//-------------------------------------------
//断码显示
//-------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/Data_Fuel/Data_Fuel_User.c
View file @
c25b3e33
...
...
@@ -5,7 +5,7 @@
#include "GPIO.h"
#include "Services_ODO_User.h"
//-------------------------------------------
//燃油 数据处理
wangboyu 2021-8-31 15:19:14
//燃油 数据处理
//-------------------------------------------
// 342 - 4.2.燃油表
//-------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/Data_Voltmeter/Data_Voltmeter.c
View file @
c25b3e33
...
...
@@ -2,28 +2,28 @@
#include "RTE_ADC.h"
#include "GaugesInterface.h"
//-------------------------------------------
//电压计数据处理
wangboyu
//电压计数据处理
//-------------------------------------------
//区域5显示逻辑
//-------------------------------------------
//344 - 3.4.2.2电压计显示画面
//344 - 3.4.2.2电压计显示画面
//-------------------------------------------
static
struct
{
uint8_t
SumCnt
;
uint32_t
ActVoltage
;
uint8_t
Timer
;
uint8_t
Gui_Voltmeter
;
uint8_t
Valid
;
uint16_t
AvrVoltage
;
}
VoltmeterVariable
;
uint8_t
SumCnt
;
uint32_t
ActVoltage
;
uint8_t
Timer
;
uint8_t
Gui_Voltmeter
;
uint8_t
Valid
;
uint16_t
AvrVoltage
;
}
VoltmeterVariable
;
static
void
Data_Voltmeter_2_Gui
(
void
);
static
uint16_t
Get_VoltFilter
(
void
);
static
static
/*-------------------------------------------------------------------------
* Function Name : Voltmeter_KL30_Init
* Description :
* Description :
* Input : None
* Output : None
* Return : None
...
...
@@ -31,12 +31,12 @@ static
--------------------------------------------------------------------------*/
void
Voltmeter_KL30_Init
(
void
)
{
VoltmeterVariable
.
SumCnt
=
0
;
VoltmeterVariable
.
ActVoltage
=
0
;
VoltmeterVariable
.
AvrVoltage
=
0
;
VoltmeterVariable
.
Timer
=
0
;
VoltmeterVariable
.
Gui_Voltmeter
=
0
;
VoltmeterVariable
.
Valid
=
0
;
VoltmeterVariable
.
SumCnt
=
0
;
VoltmeterVariable
.
ActVoltage
=
0
;
VoltmeterVariable
.
AvrVoltage
=
0
;
VoltmeterVariable
.
Timer
=
0
;
VoltmeterVariable
.
Gui_Voltmeter
=
0
;
VoltmeterVariable
.
Valid
=
0
;
}
void
Voltmeter_KL15_ON_Init
(
void
)
{
...
...
@@ -56,7 +56,7 @@ void Voltmeter_Sleep_Init(void)
}
/*-------------------------------------------------------------------------
* Function Name : Voltmeter_Processing_Service
* Description :
* Description :
* Input : None
* Output : None
* Return : None
...
...
@@ -64,7 +64,7 @@ void Voltmeter_Sleep_Init(void)
--------------------------------------------------------------------------*/
void
Voltmeter_Processing_Service
(
void
)
{
Data_Voltmeter_2_Gui
();
Data_Voltmeter_2_Gui
();
}
/*-------------------------------------------------------------------------
* Function Name : Get_VoltFilter
...
...
@@ -76,29 +76,29 @@ void Voltmeter_Processing_Service(void)
--------------------------------------------------------------------------*/
static
uint16_t
Get_VoltFilter
(
void
)
{
uint8_t
Valid
=
0
;
uint16_t
Voltage
=
0
;
Valid
=
RTE_Read_KL30_Valid
()
;
if
(
Valid
)
{
Voltage
=
(
uint16_t
)
RTE_Read_KL30_Voltage
();
if
(
VoltmeterVariable
.
SumCnt
<
10u
)
{
VoltmeterVariable
.
ActVoltage
+=
Voltage
;
VoltmeterVariable
.
SumCnt
+=
1u
;
Voltage
=
(
uint16_t
)(
VoltmeterVariable
.
ActVoltage
/
VoltmeterVariable
.
SumCnt
);
}
else
{
VoltmeterVariable
.
SumCnt
=
0u
;
VoltmeterVariable
.
ActVoltage
=
0u
;
VoltmeterVariable
.
ActVoltage
+=
Voltage
;
VoltmeterVariable
.
SumCnt
+=
1u
;
Voltage
=
(
uint16_t
)
(
VoltmeterVariable
.
ActVoltage
/
VoltmeterVariable
.
SumCnt
);
}
}
return
Voltage
;
uint8_t
Valid
=
0
;
uint16_t
Voltage
=
0
;
Valid
=
RTE_Read_KL30_Valid
()
;
if
(
Valid
)
{
Voltage
=
(
uint16_t
)
RTE_Read_KL30_Voltage
();
if
(
VoltmeterVariable
.
SumCnt
<
10u
)
{
VoltmeterVariable
.
ActVoltage
+=
Voltage
;
VoltmeterVariable
.
SumCnt
+=
1u
;
Voltage
=
(
uint16_t
)(
VoltmeterVariable
.
ActVoltage
/
VoltmeterVariable
.
SumCnt
);
}
else
{
VoltmeterVariable
.
SumCnt
=
0u
;
VoltmeterVariable
.
ActVoltage
=
0u
;
VoltmeterVariable
.
ActVoltage
+=
Voltage
;
VoltmeterVariable
.
SumCnt
+=
1u
;
Voltage
=
(
uint16_t
)
(
VoltmeterVariable
.
ActVoltage
/
VoltmeterVariable
.
SumCnt
);
}
}
return
Voltage
;
}
/*-------------------------------------------------------------------------
* Function Name : Data_Voltmeter_2_Gui
...
...
@@ -110,40 +110,40 @@ static uint16_t Get_VoltFilter(void)
--------------------------------------------------------------------------*/
static
void
Data_Voltmeter_2_Gui
(
void
)
{
static
uint8_t
u8GuiMode
=
0
;
VoltmeterVariable
.
AvrVoltage
=
Get_VoltFilter
();
if
((
VoltmeterVariable
.
AvrVoltage
>=
17000
)
&&
(
VoltmeterVariable
.
AvrVoltage
<=
30500
))
{
VoltmeterVariable
.
Valid
=
1
;
VoltmeterVariable
.
Timer
=
0
;
}
else
{
//检测出范围以外数据时的处理
if
(
VoltmeterVariable
.
Timer
<
(
2000
/
20
))
{
//未到2sec前保持原图像
VoltmeterVariable
.
Timer
++
;
}
else
{
VoltmeterVariable
.
Valid
=
0
;
}
}
if
(
VoltmeterVariable
.
Valid
)
{
SetGaugesPara
(
VoltGauges
,
VoltmeterVariable
.
AvrVoltage
);
u8GuiMode
=
GetGaugesCurrentPos
(
VoltGauges
);
}
else
{
}
VoltmeterVariable
.
Gui_Voltmeter
=
u8GuiMode
;
static
uint8_t
u8GuiMode
=
0
;
VoltmeterVariable
.
AvrVoltage
=
Get_VoltFilter
();
if
((
VoltmeterVariable
.
AvrVoltage
>=
17000
)
&&
(
VoltmeterVariable
.
AvrVoltage
<=
30500
))
{
VoltmeterVariable
.
Valid
=
1
;
VoltmeterVariable
.
Timer
=
0
;
}
else
{
//检测出范围以外数据时的处理
if
(
VoltmeterVariable
.
Timer
<
(
2000
/
20
))
{
//未到2sec前保持原图像
VoltmeterVariable
.
Timer
++
;
}
else
{
VoltmeterVariable
.
Valid
=
0
;
}
}
if
(
VoltmeterVariable
.
Valid
)
{
SetGaugesPara
(
VoltGauges
,
VoltmeterVariable
.
AvrVoltage
);
u8GuiMode
=
GetGaugesCurrentPos
(
VoltGauges
);
}
else
{
}
VoltmeterVariable
.
Gui_Voltmeter
=
u8GuiMode
;
}
/*-------------------------------------------------------------------------
* Function Name : Get_Voltmeter_AvrVoltage
...
...
@@ -155,9 +155,9 @@ static void Data_Voltmeter_2_Gui(void)
--------------------------------------------------------------------------*/
uint16_t
Get_Voltmeter_AvrVoltage
(
void
)
{
uint16_t
u16Result
=
0
;
u16Result
=
VoltmeterVariable
.
AvrVoltage
;
return
u16Result
;
uint16_t
u16Result
=
0
;
u16Result
=
VoltmeterVariable
.
AvrVoltage
;
return
u16Result
;
}
/*-------------------------------------------------------------------------
* Function Name : Gui_Get_Voltmeter_DisplayMode
...
...
@@ -169,9 +169,9 @@ uint16_t Get_Voltmeter_AvrVoltage(void)
--------------------------------------------------------------------------*/
uint8_t
Gui_Get_Voltmeter_DisplayMode
(
void
)
{
uint8_t
u8Result
=
0
;
u8Result
=
VoltmeterVariable
.
Gui_Voltmeter
;
return
u8Result
;
uint8_t
u8Result
=
0
;
u8Result
=
VoltmeterVariable
.
Gui_Voltmeter
;
return
u8Result
;
}
/*-------------------------------------------------------------------------
* Function Name : Get_Voltmeter_Valid
...
...
@@ -183,9 +183,9 @@ uint8_t Gui_Get_Voltmeter_DisplayMode(void)
--------------------------------------------------------------------------*/
uint8_t
Get_Voltmeter_Valid
(
void
)
{
uint8_t
u8Result
=
0
;
u8Result
=
VoltmeterVariable
.
Valid
;
return
u8Result
;
uint8_t
u8Result
=
0
;
u8Result
=
VoltmeterVariable
.
Valid
;
return
u8Result
;
}
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/Data_WET/Data_WET.c
View file @
c25b3e33
...
...
@@ -4,23 +4,23 @@
#include "CAN_Communication_Matrix.h"
//-------------------------------------------
//WET空气计 数据处理
wangboyu
//WET空气计 数据处理
//-------------------------------------------
//区域1显示逻辑
//-------------------------------------------
//344 - 3.4.2.2电压计显示画面
//344 - 3.4.2.2电压计显示画面
//-------------------------------------------
static
struct
{
uint8_t
SumCnt
;
uint32_t
Voltage
;
uint16_t
Result
;
}
WET_Filter
;
uint8_t
SumCnt
;
uint32_t
Voltage
;
uint16_t
Result
;
}
WET_Filter
;
/*-------------------------------------------------------------------------
* Function Name : WET_KL30_Init
* Description :
* Description :
* Input : None
* Output : None
* Return : None
...
...
@@ -67,39 +67,39 @@ void WET_Processing_Service(void)
--------------------------------------------------------------------------*/
void
WET_AdcData_Filter
(
void
)
{
uint8_t
u8WETValid
=
0
;
uint16_t
WETVoltage
=
0
;
//u8WETValid = RTE_Read_WET_Valid();
if
(
u8WETValid
)
{
if
(
WET_Filter
.
SumCnt
<
50
)
{
WET_Filter
.
SumCnt
++
;
//WETVoltage = RTE_Read_WET_Voltage() ;
WET_Filter
.
Voltage
+=
WETVoltage
;
WETVoltage
=
(
uint16_t
)(
WET_Filter
.
Voltage
/
WET_Filter
.
SumCnt
)
;
}
else
{
WET_Filter
.
SumCnt
=
0
;
WET_Filter
.
Voltage
=
0
;
//WETVoltage = RTE_Read_WET_Voltage() ;
WET_Filter
.
SumCnt
++
;
WET_Filter
.
Voltage
+=
WETVoltage
;
WETVoltage
=
(
uint16_t
)(
WET_Filter
.
Voltage
/
WET_Filter
.
SumCnt
)
;
}
}
else
{
WET_Filter
.
SumCnt
=
0
;
WET_Filter
.
Voltage
=
0
;
WETVoltage
=
0
;
}
WET_Filter
.
Result
=
WETVoltage
;
uint8_t
u8WETValid
=
0
;
uint16_t
WETVoltage
=
0
;
//u8WETValid = RTE_Read_WET_Valid();
if
(
u8WETValid
)
{
if
(
WET_Filter
.
SumCnt
<
50
)
{
WET_Filter
.
SumCnt
++
;
//WETVoltage = RTE_Read_WET_Voltage() ;
WET_Filter
.
Voltage
+=
WETVoltage
;
WETVoltage
=
(
uint16_t
)(
WET_Filter
.
Voltage
/
WET_Filter
.
SumCnt
)
;
}
else
{
WET_Filter
.
SumCnt
=
0
;
WET_Filter
.
Voltage
=
0
;
//WETVoltage = RTE_Read_WET_Voltage() ;
WET_Filter
.
SumCnt
++
;
WET_Filter
.
Voltage
+=
WETVoltage
;
WETVoltage
=
(
uint16_t
)(
WET_Filter
.
Voltage
/
WET_Filter
.
SumCnt
)
;
}
}
else
{
WET_Filter
.
SumCnt
=
0
;
WET_Filter
.
Voltage
=
0
;
WETVoltage
=
0
;
}
WET_Filter
.
Result
=
WETVoltage
;
}
/*-------------------------------------------------------------------------
* Function Name : Gui_Get_Voltmeter_Valid
...
...
@@ -111,9 +111,9 @@ void WET_AdcData_Filter(void)
--------------------------------------------------------------------------*/
static
uint16_t
Get_WET_Adc_Filter
(
void
)
{
uint16_t
u16Result
;
u16Result
=
WET_Filter
.
Result
;
return
u16Result
;
uint16_t
u16Result
;
u16Result
=
WET_Filter
.
Result
;
return
u16Result
;
}
/*-------------------------------------------------------------------------
* Function Name : Gui_Get_Voltmeter_Valid
...
...
This diff is collapsed.
Click to expand it.
source/Application/APP/Individual_ECU_Comm/Individual_ECU_Comm.c
deleted
100644 → 0
View file @
7443c284
This diff is collapsed.
Click to expand it.
source/Application/APP/Individual_ECU_Comm/Individual_ECU_Comm.h
deleted
100644 → 0
View file @
7443c284
#ifndef INDIVIDUAL_ECU_COMM_H
#define INDIVIDUAL_ECU_COMM_H
#include "TYW_stdint.h"
typedef
enum
{
ID_TripA_AvrFuelCost
=
0
,
//Trip A平均油耗
ID_TripA_AvrSpeed
,
//Trip A平均车速
ID_TripA_ConsDyeingFee
,
//Trip A燃費消耗量
ID_TripA_IdleSpeedTime
,
//Trip A怠速时间
ID_TripA_RunTime
,
//Trip A运行时间
ID_TripB_AvrFuelCost
,
//Trip B平均油耗
ID_TripB_AvrSpeed
,
//Trip B平均车速
ID_TripB_ConsDyeingFee
,
//Trip B燃费消耗量
ID_TripB_IdleSpeedTime
,
//Trip B怠速时间
ID_TripB_RunTime
,
//Trip B运行时间
ID_ResidualDistance
,
//发动机油&滤清器残留距离 (m)
ID_HowMany
,
//起动机剩余次数(回)
ID_AlarmThreshold
,
//发动机油&滤清器警报阈值 (m)
ID18FEAE17_TYPE_MAX
,
}
ID18FEAE17_TYPE
;
extern
const
uint8_t
IDAE17_TYTE_DATA
[
ID18FEAE17_TYPE_MAX
];
typedef
enum
{
METER_CODE_DATA_T_REQ
=
0
,
//普通数据传输请求
METER_CODE_DATA_CLR_REQ
,
//清除数据要求
METER_CODE_DATA_W_REQ
,
//数据改写要求
ECU_CODE_DATA_T_Y_RESPONSE
,
//常用数据发送肯定应答
ECU_CODE_DATA_CLR_Y_RESPONSE
,
//清除数据的肯定应答
ECU_CODE_DATA_W_Y_RESPONSE
,
//改写数据肯定应答
ECU_CODE_DATA_N_RESPONSE
,
//否定应答
COMM_CODE_MAX_NUM
,
}
en_CommSta
;
extern
void
Individual_ECU_Comm_KL30_Init
(
void
);
extern
void
Individual_ECU_Comm_KL15_ON_Init
(
void
);
extern
void
Individual_ECU_Comm_KL15_OFF_Init
(
void
);
extern
void
Individual_ECU_Comm_Wakeup_Init
(
void
);
extern
void
Individual_ECU_Comm_Sleep_Init
(
void
);
extern
void
Individual_ECU_Comm_Processing_Service
(
void
);
extern
void
RevMsg_ID18EF1718_Cbk
(
void
);
extern
void
Individual_ECU_Comm_Processing_Service
(
void
);
extern
void
Set_Meter_RequestCode
(
en_CommSta
Code
,
ID18FEAE17_TYPE
Type
,
uint32_t
Data
)
;
//应用发起
extern
void
Meter_RequestCode_Update
(
void
);
extern
en_CommSta
Get_Meter_RequestID
(
void
)
;
extern
uint8_t
Get_Meter_RequestCode
(
void
);
extern
ID18FEAE17_TYPE
Get_Meter_RequestType
(
void
);
extern
uint32_t
Get_Meter_RequestData
(
ID18FEAE17_TYPE
Type
);
extern
uint8_t
Get_ECU_RespErr
(
void
);
extern
uint8_t
Get_ECU_RespSure
(
void
);
extern
uint32_t
Get_ECU_Data
(
ID18FEAE17_TYPE
Type
);
#endif
This diff is collapsed.
Click to expand it.
source/Application/APP/PowerManagement/PowerManagement_user.c
View file @
c25b3e33
...
...
@@ -40,7 +40,6 @@
#include "IS31FL3236.h"
#include "GUI.h"
#include "Individual_ECU_Comm.h"
#include "Data_Fuel_User.h"
#define POWER_NM_SLEEP 0U
...
...
@@ -106,7 +105,6 @@ Power_Status_t Power_KL30_Init ( void )
/*按键部分 杨真东维护结束*/
AirPressure_KL30_Init
();
Individual_ECU_Comm_KL30_Init
();
/*报警调度初始化*/
Popup_Scheduler_Init
();
/*报警调度初始化*/
...
...
This diff is collapsed.
Click to expand it.
source/Application/CAN_APP_NM/CAN_App/CAN_Communication_Matrix.c
View file @
c25b3e33
#include "CAN_Communication_Matrix.h"
#include "CAN_FUNC.h"
#include "Individual_ECU_Comm.h"
/* 2021/09/22 11:03:12 */
const
st_CAN_SendAttribute
st_CANSendAttr
[
ID_SEND_TOTAL
]
=
...
...
@@ -1090,4 +1089,4 @@ uint8_t Co_Can_ConvertSubID(uint32_t MsgID)
break
;
}
return
u8Result
;
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
source/Application/CAN_APP_NM/CAN_App/CAN_FUNC.c
View file @
c25b3e33
...
...
@@ -11,7 +11,6 @@
#include "Data_CoolantTemperature.h"
#include "Data_Voltmeter.h"
#include "Data_AirPressure.h"
#include "Individual_ECU_Comm.h"
#include "RTE_TIME.h"
#include "Services_Mileage.h"
#include "RTE_ADC.h"
...
...
@@ -258,88 +257,10 @@ void Can_Set_Buff_18FEE617(uint8_t CopyData [])
* onther : None
--------------------------------------------------------------------------*/
const
uint8_t
IDAE17_TYTE_DATA
[
ID18FEAE17_TYPE_MAX
]
=
{
0x50
,
0x51
,
0x52
,
0x53
,
0x54
,
0x60
,
0x61
,
0x62
,
0x63
,
0x64
,
0x20
,
0x22
,
0x30
};
static
const
uint8_t
IDAE17_SendOrder
[
ID18FEAE17_TYPE_MAX
][
2U
]
=
{
// A B
{
ID_AlarmThreshold
,
ID_TripA_AvrFuelCost
},
{
ID_TripA_AvrFuelCost
,
ID_TripA_AvrSpeed
},
{
ID_TripA_AvrSpeed
,
ID_TripA_ConsDyeingFee
},
{
ID_TripA_ConsDyeingFee
,
ID_TripA_IdleSpeedTime
},
{
ID_TripA_IdleSpeedTime
,
ID_TripA_RunTime
},
{
ID_TripA_RunTime
,
ID_TripB_AvrFuelCost
},
{
ID_TripB_AvrFuelCost
,
ID_TripB_AvrSpeed
},
{
ID_TripB_AvrSpeed
,
ID_TripB_ConsDyeingFee
},
{
ID_TripB_ConsDyeingFee
,
ID_TripB_IdleSpeedTime
},
{
ID_TripB_IdleSpeedTime
,
ID_TripB_RunTime
},
{
ID_TripB_RunTime
,
ID_ResidualDistance
},
{
ID_ResidualDistance
,
ID_HowMany
},
{
ID_HowMany
,
ID_AlarmThreshold
},
};
//Byte:6为最高级别Byte,Byte:3为最低级别Byte
void
Can_Set_Buff_18EF1817
(
uint8_t
CopyData
[])
{
static
uint8_t
Count
=
0
;
uint8_t
Type
;
uint8_t
i
=
0
;
for
(
i
=
0
;
i
<
8
;
i
++
)
{
CopyData
[
i
]
=
0xff
;
}
Meter_RequestCode_Update
();
CopyData
[
0
]
=
Get_Meter_RequestCode
();
if
(
Get_Meter_RequestID
()
==
METER_CODE_DATA_T_REQ
)
{
//A
Type
=
IDAE17_SendOrder
[
Count
][
0
];
//B
//Type = IDAE17_SendOrder[Count][1];
CopyData
[
1
]
=
IDAE17_TYTE_DATA
[
Type
]
;
if
(
Get_ECU_RespSure
())
{
CopyData
[
2
]
=
(
uint8_t
)
Get_ECU_Data
(
Type
);
CopyData
[
3
]
=
(
uint8_t
)(
Get_ECU_Data
(
Type
)
>>
8
);
CopyData
[
4
]
=
(
uint8_t
)(
Get_ECU_Data
(
Type
)
>>
16
);
CopyData
[
5
]
=
(
uint8_t
)(
Get_ECU_Data
(
Type
)
>>
24
);
}
else
{
CopyData
[
2
]
=
0xff
;
CopyData
[
3
]
=
0xff
;
CopyData
[
4
]
=
0xff
;
CopyData
[
5
]
=
0xff
;
}
Count
++
;
if
(
Count
>=
ID18FEAE17_TYPE_MAX
)
{
Count
=
0
;
}
}
else
{
CopyData
[
1
]
=
IDAE17_TYTE_DATA
[
Get_Meter_RequestType
()]
;
if
(
Get_ECU_RespSure
())
{
Set_Meter_RequestCode
(
METER_CODE_DATA_T_REQ
,
ID_TripA_AvrFuelCost
,
0
);
}
else
{
CopyData
[
2
]
=
(
uint8_t
)
Get_Meter_RequestData
(
Type
);
CopyData
[
3
]
=
(
uint8_t
)(
Get_Meter_RequestData
(
Type
)
>>
8
);
CopyData
[
4
]
=
(
uint8_t
)(
Get_Meter_RequestData
(
Type
)
>>
16
);
CopyData
[
5
]
=
(
uint8_t
)(
Get_Meter_RequestData
(
Type
)
>>
24
);
}
}
//0xFF固定送信
CopyData
[
6
]
=
0xff
;
CopyData
[
7
]
=
0xff
;
}
...
...
This diff is collapsed.
Click to expand it.
source/System/tasks.c
View file @
c25b3e33
...
...
@@ -78,7 +78,6 @@
#include "Data_FuelConsump.h"
#include "IS31FL3236.h"
#include "Individual_ECU_Comm.h"
#include "TimerB.h"
#include "BU98R10.h"
...
...
@@ -160,7 +159,6 @@ void Sys_Run_Mode_10ms_Tasks(void)
------------------------------------------------------------------------------*/
void
Sys_Run_Mode_20ms_Tasks
(
void
)
{
Individual_ECU_Comm_Processing_Service
();
Coolant_Processing_Service
();
Tacho_Processing_Service
();
Speed_Processing_Service
();
...
...
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