Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT_RMR42E
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
时昊
RT_RMR42E
Commits
6d4ec0da
Commit
6d4ec0da
authored
Mar 11, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修改指示灯自检显示不全的问题
parent
48834c70
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
53 deletions
+28
-53
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+0
-26
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+1
-0
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+27
-27
No files found.
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
6d4ec0da
...
@@ -421,37 +421,11 @@ void Gauge_CAN_setup_Service(void)
...
@@ -421,37 +421,11 @@ void Gauge_CAN_setup_Service(void)
void
Checkself_LED_Display
(
void
)
void
Checkself_LED_Display
(
void
)
{
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_00_Grass_Full_R
,
LED_ON
);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_01_Power_Battery_Failure_R, LED_ON);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_02_System_Indicator_R
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_05_Gears_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_05_Gears_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_04_GEAR_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_04_GEAR_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_08_Battery_Charging_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_10_READY_G
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_11_Key_Access_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_12_Seat_Detection_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_13_OVERLOAD_R
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_14_Cutterhead_Switch_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_15_Cutterhead_Gear_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_15_Cutterhead_Gear_W
,
LED_ON
);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_17_External_Discharge_W, LED_ON);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_21_LED_Open_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_31_Working_Hours_One_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_31_Working_Hours_One_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_32_Charging_Connection_R
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_19_Fault_Codes_W
,
LED_ON
);
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_19_Fault_Codes_W
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_Recharge
,
1
);
SEG_SET_LED_STS
(
SEG_LED_System_Light
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Chloramine
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Cutter_Overload
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Seat_Detection
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Key_Access
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Ready
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Cutter_Head_switch
,
1
);
// SEG_SET_LED_STS(SEG_LED_External_Discharge, 1);
SEG_SET_LED_STS
(
SEG_LED_Distance_Light
,
1
);
SEG_SET_LED_STS
(
SEG_LED_HHT_Charger
,
1
);
SEG_SET_Frame
(
1
);
SEG_SET_Frame
(
1
);
}
}
...
...
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
6d4ec0da
...
@@ -124,6 +124,7 @@ static void Power_IG_ON_Init(void)
...
@@ -124,6 +124,7 @@ static void Power_IG_ON_Init(void)
Checkself_Init
();
Checkself_Init
();
Line_In_KL15_ON_Init
();
Line_In_KL15_ON_Init
();
LED_Driver_Service_Immediate
();
LED_Driver_Service_Immediate
();
Telltales_KL15_Init
();
Fault_Code_KL15_Init
();
Fault_Code_KL15_Init
();
Data_Time_KL15_Init
();
Data_Time_KL15_Init
();
Data_Soc_KL15_Init
();
Data_Soc_KL15_Init
();
...
...
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
6d4ec0da
...
@@ -93,33 +93,33 @@ uint8_t g_TOTALSigChargeCount = 0U;
...
@@ -93,33 +93,33 @@ uint8_t g_TOTALSigChargeCount = 0U;
const
LED_Attribute_st
LED_Attribute
[
LED_Max
]
=
const
LED_Attribute_st
LED_Attribute
[
LED_Max
]
=
{
{
/* 指示灯索引 是否自检 外部信号自检 工作电源状态 自检开始时间 自检持续时间 指示灯点亮条件 指示灯执行函数 */
/* 指示灯索引 是否自检 外部信号自检 工作电源状态 自检开始时间 自检持续时间 指示灯点亮条件 指示灯执行函数 */
{
em_LED_EFI_failure_Y
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_EFI_failure_Judgement
,
LED_EFI_failure_Execution
},
{
em_LED_EFI_failure_Y
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_EFI_failure_Judgement
,
LED_EFI_failure_Execution
},
{
em_LED_Fuel_Alarm_Y
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Fuel_Alarm_Judgement
,
LED_Fuel_Alarm_Execution
},
{
em_LED_Fuel_Alarm_Y
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Fuel_Alarm_Judgement
,
LED_Fuel_Alarm_Execution
},
{
em_LED_Lead_Acid_Battery_Failure_R
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Lead_Acid_Battery_Failure_Judgement
,
LED_Lead_Acid_Battery_Failure_Execution
},
{
em_LED_Lead_Acid_Battery_Failure_R
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Lead_Acid_Battery_Failure_Judgement
,
LED_Lead_Acid_Battery_Failure_Execution
},
{
em_LED_Oil_Pressure_R
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Oil_Pressure_Judgement
,
LED_Oil_Pressure_Execution
},
{
em_LED_Oil_Pressure_R
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Oil_Pressure_Judgement
,
LED_Oil_Pressure_Execution
},
{
em_LED_Grass_Full_R
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Grass_Full_Judgement
,
LED_Grass_Full_Execution
},
{
em_LED_Grass_Full_R
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Grass_Full_Judgement
,
LED_Grass_Full_Execution
},
{
em_LED_OVERLOAD_R
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_OVERLOAD_Judgement
,
LED_OVERLOAD_Execution
},
{
em_LED_OVERLOAD_R
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_OVERLOAD_Judgement
,
LED_OVERLOAD_Execution
},
{
em_LED_READY_G
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_READY_Judgement
,
LED_READY_Execution
},
{
em_LED_READY_G
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_READY_Judgement
,
LED_READY_Execution
},
{
em_LED_Seat_Detection_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Seat_Detection_Judgement
,
LED_Seat_Detection_Execution
},
{
em_LED_Seat_Detection_W
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Seat_Detection_Judgement
,
LED_Seat_Detection_Execution
},
{
em_LED_Key_Access_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Key_Access_Judgement
,
LED_Key_Access_Execution
},
{
em_LED_Key_Access_W
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Key_Access_Judgement
,
LED_Key_Access_Execution
},
{
em_LED_Battery_Charging_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON_OFF
,
0u
,
30
00ul
,
LED_Battery_Charging_Judgement
,
LED_Battery_Charging_Execution
},
{
em_LED_Battery_Charging_W
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON_OFF
,
0u
,
15
00ul
,
LED_Battery_Charging_Judgement
,
LED_Battery_Charging_Execution
},
{
em_LED_Cutterhead_Switch_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Cutterhead_Switch_Judgement
,
LED_Cutterhead_Switch_Execution
},
{
em_LED_Cutterhead_Switch_W
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Cutterhead_Switch_Judgement
,
LED_Cutterhead_Switch_Execution
},
{
em_LED_GEAR_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_GEAR_Judgement
,
LED_GEAR_Execution
},
{
em_LED_GEAR_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_GEAR_Judgement
,
LED_GEAR_Execution
},
{
em_LED_External_Discharge_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_External_Discharge_Judgement
,
LED_External_Discharge_Execution
},
{
em_LED_External_Discharge_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_External_Discharge_Judgement
,
LED_External_Discharge_Execution
},
{
em_LED_Engine_Works_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Engine_Works_Judgement
,
LED_Engine_Works_Execution
},
{
em_LED_Engine_Works_W
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Engine_Works_Judgement
,
LED_Engine_Works_Execution
},
{
em_LED_Bluetooth_Connection_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Bluetooth_Connection_Judgement
,
LED_Bluetooth_Connection_Execution
},
{
em_LED_Bluetooth_Connection_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Bluetooth_Connection_Judgement
,
LED_Bluetooth_Connection_Execution
},
{
em_LED_LED_Open_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_LED_Open_Judgement
,
LED_LED_Open_Execution
},
{
em_LED_LED_Open_W
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_LED_Open_Judgement
,
LED_LED_Open_Execution
},
{
em_LED_Cruise_Control_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Cruise_Control_Judgement
,
LED_Cruise_Control_Execution
},
{
em_LED_Cruise_Control_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Cruise_Control_Judgement
,
LED_Cruise_Control_Execution
},
{
em_LED_Tire_pressure_F_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Tire_pressure_F_Judgement
,
LED_Tire_pressure_F_Execution
},
{
em_LED_Tire_pressure_F_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Tire_pressure_F_Judgement
,
LED_Tire_pressure_F_Execution
},
{
em_LED_Tire_pressure_R_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Tire_pressure_R_Judgement
,
LED_Tire_pressure_R_Execution
},
{
em_LED_Tire_pressure_R_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Tire_pressure_R_Judgement
,
LED_Tire_pressure_R_Execution
},
{
em_LED_Cutterhead_Gear_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Cutterhead_Gear_Judgement
,
LED_Cutterhead_Gear_Execution
},
{
em_LED_Cutterhead_Gear_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Cutterhead_Gear_Judgement
,
LED_Cutterhead_Gear_Execution
},
{
em_LED_Working_Hours_One_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Working_Hours_One_Judgement
,
LED_Working_Hours_One_Execution
},
{
em_LED_Working_Hours_One_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Working_Hours_One_Judgement
,
LED_Working_Hours_One_Execution
},
{
em_LED_Fault_Codes_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Fault_Codes_Judgement
,
LED_Fault_Codes_Execution
},
{
em_LED_Fault_Codes_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Fault_Codes_Judgement
,
LED_Fault_Codes_Execution
},
{
em_LED_System_Indicator_R
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_SystIndicator_R_Judgement
,
LED_SystIndicator_R_Execution
},
{
em_LED_System_Indicator_R
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_SystIndicator_R_Judgement
,
LED_SystIndicator_R_Execution
},
{
em_LED_P_GEAR_G
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_P_GEAR_G_Judgement
,
LED_P_GEAR_G_Execution
},
{
em_LED_P_GEAR_G
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_P_GEAR_G_Judgement
,
LED_P_GEAR_G_Execution
},
{
em_LED_Fuel_Alarm_W
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Fuel_Alarm_W_Judgement
,
LED_Fuel_Alarm_W_Execution
},
{
em_LED_Fuel_Alarm_W
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Fuel_Alarm_W_Judgement
,
LED_Fuel_Alarm_W_Execution
},
{
em_LED_Charging_Connection_R
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON_OFF
,
0u
,
30
00ul
,
LED_Charging_Connection_R_Judgement
,
LED_Charging_Connection_R_Execution
},
{
em_LED_Charging_Connection_R
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON_OFF
,
0u
,
15
00ul
,
LED_Charging_Connection_R_Judgement
,
LED_Charging_Connection_R_Execution
},
{
em_LED_Power_Battery_Failure_R
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
30
00ul
,
LED_Power_Battery_Failure_R_Judgement
,
LED_Power_Battery_Failure_R_Execution
},
{
em_LED_Power_Battery_Failure_R
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
15
00ul
,
LED_Power_Battery_Failure_R_Judgement
,
LED_Power_Battery_Failure_R_Execution
},
};
};
__align
(
4
)
Tellib_uint8_t
Tel_Mem
[
Tel_MEM_Block_Size
*
LED_Max
+
Tel_MEM_Block_Addition
];
__align
(
4
)
Tellib_uint8_t
Tel_Mem
[
Tel_MEM_Block_Size
*
LED_Max
+
Tel_MEM_Block_Addition
];
...
...
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