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
bfa297ce
Commit
bfa297ce
authored
Apr 26, 2022
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整开机动画显示
parent
b4784644
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
92 additions
and
67 deletions
+92
-67
Gauges.c
source/Application/APP/GaugesMode/Gauges.c
+2
-3
GaugesInterface.c
source/Application/APP/GaugesMode/GaugesInterface.c
+1
-1
SEG_DISPLAY.c
source/Application/APP/SEG_LCD/SEG_DISPLAY.c
+25
-12
Telltales_user.c
source/Application/APP/Telltales/Telltales_user.c
+39
-39
GUI.c
source/Application/Graphic/GUI/GUI.c
+3
-4
GUI.h
source/Application/Graphic/GUI/GUI.h
+1
-1
DisplaySch_user.c
source/Application/Graphic/UE/DisplaySch_user.c
+9
-5
DisplaySch_user.h
source/Application/Graphic/UE/DisplaySch_user.h
+3
-1
tasks.c
source/System/tasks.c
+9
-1
No files found.
source/Application/APP/GaugesMode/Gauges.c
View file @
bfa297ce
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
#include "Gauges.h"
#include "Gauges.h"
#include "GaugesInterface.h"
#include "GaugesInterface.h"
#define GAUGES_TOTAL_NUM 9u
#define GAUGES_TOTAL_NUM 9u
#define GAUGES_INIT_TIME_MAX
3
000u
#define GAUGES_INIT_TIME_MAX
2
000u
uint16_t
GaugesCurrentPos
[
GAUGES_TOTAL_NUM
]
;
uint16_t
GaugesCurrentPos
[
GAUGES_TOTAL_NUM
]
;
uint16_t
BackupDestPostion
[
GAUGES_TOTAL_NUM
];
uint16_t
BackupDestPostion
[
GAUGES_TOTAL_NUM
];
uint16_t
GaugesDisPos
[
GAUGES_TOTAL_NUM
];
uint16_t
GaugesDisPos
[
GAUGES_TOTAL_NUM
];
...
@@ -27,7 +27,7 @@ uint16_t GaugesInitTimes;
...
@@ -27,7 +27,7 @@ uint16_t GaugesInitTimes;
uint8_t
GaugesPowerState
=
0u
;
uint8_t
GaugesPowerState
=
0u
;
uint16_t
GaugesFreeSetTimes
=
0u
;
uint16_t
GaugesFreeSetTimes
=
0u
;
uint16_t
GaugesLibDataIn
;
uint16_t
GaugesLibDataIn
;
const
uint16_t
Gauages_Init_Time_Max
[
2
]
=
{
3000
,
6000
};
const
uint16_t
Gauages_Init_Time_Max
[
2
]
=
{
GAUGES_INIT_TIME_MAX
,
6000
};
uint8_t
ModeGaugesTestFlag
[
GAUGES_TOTAL_NUM
]
=
{
0u
};
uint8_t
ModeGaugesTestFlag
[
GAUGES_TOTAL_NUM
]
=
{
0u
};
/*两套参数第一个是正常走行速度,第二个为快速走动8*/
/*两套参数第一个是正常走行速度,第二个为快速走动8*/
const
uint16_t
GaugesDisDelayMax
[
2u
][
IndicatTypeTOtal
]
=
const
uint16_t
GaugesDisDelayMax
[
2u
][
IndicatTypeTOtal
]
=
...
@@ -578,7 +578,6 @@ void SeftTest_GaugeMoveing(uint8_t GaugesNum)
...
@@ -578,7 +578,6 @@ void SeftTest_GaugeMoveing(uint8_t GaugesNum)
{
{
if
(
GaugesInitTimes
>
GaugesStarMoveTimeMax
[
GaugesNum
])
if
(
GaugesInitTimes
>
GaugesStarMoveTimeMax
[
GaugesNum
])
{
{
if
((
GaugesCurrentPos
[
GaugesNum
]
+
MoveTypePara
)
<
DestPostion
[
GaugesNum
])
if
((
GaugesCurrentPos
[
GaugesNum
]
+
MoveTypePara
)
<
DestPostion
[
GaugesNum
])
{
{
GaugesCurrentPos
[
GaugesNum
]
+=
MoveTypePara
;
GaugesCurrentPos
[
GaugesNum
]
+=
MoveTypePara
;
...
...
source/Application/APP/GaugesMode/GaugesInterface.c
View file @
bfa297ce
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*/
*/
#include "Common_Interface.h"
#include "Common_Interface.h"
#define Self_time
125
0u
#define Self_time
90
0u
static
const
uint16_t
GaugesDataInInit
[
GaugesTotal
][
3
][
25
]
=
static
const
uint16_t
GaugesDataInInit
[
GaugesTotal
][
3
][
25
]
=
{
{
...
...
source/Application/APP/SEG_LCD/SEG_DISPLAY.c
View file @
bfa297ce
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
#include "Data_VehicleSpeed.h"
#include "Data_VehicleSpeed.h"
#include "GaugesInterface.h"
#include "GaugesInterface.h"
#include "Menu.h"
#include "Menu.h"
#include "DisplaySch_user.h"
#include "TYW_stdint.h"
#define PRI_SEG_NUM_MAX 17U
#define PRI_SEG_NUM_MAX 17U
#define SEC_SEG_NUM_MAX 17U
#define SEC_SEG_NUM_MAX 17U
...
@@ -1028,6 +1030,8 @@ Seg_Display_Service 在 20MS任务中
...
@@ -1028,6 +1030,8 @@ Seg_Display_Service 在 20MS任务中
void
Seg_Display_Service
(
void
)
void
Seg_Display_Service
(
void
)
{
{
uint32_t
Ign_Time
;
uint32_t
Ign_Time
;
uint16_t
m16_FrameCnt
;
Ign_Time
=
Common_GetIgnOnTime
();
Ign_Time
=
Common_GetIgnOnTime
();
if
(
Common_Get_IG_Sts
()
==
COMMON_POWER_ON
)
if
(
Common_Get_IG_Sts
()
==
COMMON_POWER_ON
)
{
{
...
@@ -1049,14 +1053,22 @@ void Seg_Display_Service(void)
...
@@ -1049,14 +1053,22 @@ void Seg_Display_Service(void)
Seg_Digit_1_Disp
(
12
);
Seg_Digit_1_Disp
(
12
);
Seg_Digit_2_Disp
(
12
);
Seg_Digit_2_Disp
(
12
);
Seg_Digit_3_Disp
(
12
);
Seg_Digit_3_Disp
(
12
);
GaugesTimer
=
5u
;
}
}
else
else
{
{
SEG_A25_Disp
(
7u
);
/*左侧弧线*/
SEG_A25_Disp
(
7u
);
/*左侧弧线*/
SEG_C25_Disp
(
7u
);
/*右侧弧线*/
SEG_C25_Disp
(
7u
);
/*右侧弧线*/
if
(
Ign_Time
<
3100
)
if
(
Ign_Time
<
StartAnimationEnd
)
{
{
m16_FrameCnt
=
Common_GetHMI_StartAnimationFrameCnt
();
m16_FrameCnt
=
m16_FrameCnt
/
4u
;
if
(
m16_FrameCnt
>=
FRAMECNTFLAG
)
{
SEG_PRI_Display
(
GetGaugesCurrentPos
(
PRIGasGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
/*PRI气压格*/
SEG_PRI_Display
(
GetGaugesCurrentPos
(
PRIGasGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
/*PRI气压格*/
SEG_SEC_Display
(
GetGaugesCurrentPos
(
SECGasGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
/*SEC气压格*/
SEG_SEC_Display
(
GetGaugesCurrentPos
(
SECGasGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
/*SEC气压格*/
SEG_Coolant_Display
(
GetGaugesCurrentPos
(
TempGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
/*水温格*/
SEG_Coolant_Display
(
GetGaugesCurrentPos
(
TempGauges
),
GUI_DISP_MODE_NORMAL
,
7u
);
/*水温格*/
...
@@ -1068,6 +1080,7 @@ void Seg_Display_Service(void)
...
@@ -1068,6 +1080,7 @@ void Seg_Display_Service(void)
Seg_Digit_1_Disp
(
12
);
Seg_Digit_1_Disp
(
12
);
Seg_Digit_2_Disp
(
12
);
Seg_Digit_2_Disp
(
12
);
Seg_Digit_3_Disp
(
12
);
Seg_Digit_3_Disp
(
12
);
}
GaugesTimer
=
5u
;
GaugesTimer
=
5u
;
}
}
...
...
source/Application/APP/Telltales/Telltales_user.c
View file @
bfa297ce
This diff is collapsed.
Click to expand it.
source/Application/Graphic/GUI/GUI.c
View file @
bfa297ce
...
@@ -88,17 +88,16 @@ void GUI_Display_KL15_OFF_Init(void)
...
@@ -88,17 +88,16 @@ void GUI_Display_KL15_OFF_Init(void)
void
GUI_Display_background
(
void
)
void
GUI_Display_background
(
void
)
{
{
GUI_General_Display
(
WET_Sprite
,
ditu_2
,
GUI_BLENDMODE_CUSTOM
);
GUI_General_Display
(
WET_Sprite
,
ditu_2
,
GUI_BLENDMODE_CUSTOM
);
//GUI_General_Display(WET_Sprite, isuzu_113, GUI_BLENDMODE_SRC_OVER);
}
}
/*开机动画*/
/*开机动画*/
void
GUI_Display_Animation_Frame
(
uint16_t
frame
)
void
GUI_Display_Animation_Frame
(
uint16_t
frame
)
{
{
if
(
frame
>=
11
3
u
)
if
(
frame
>=
11
2
u
)
{
{
frame
=
11
3
u
;
frame
=
11
2
u
;
}
}
GUI_General_Display
(
WET_Sprite
,
isuzu_00
0
+
frame
,
GUI_BLENDMODE_SRC_OVER
);
GUI_General_Display
(
WET_Sprite
,
isuzu_00
1
+
frame
,
GUI_BLENDMODE_SRC_OVER
);
}
}
void
GUI_Display_Value_Init
(
void
)
void
GUI_Display_Value_Init
(
void
)
{
{
...
...
source/Application/Graphic/GUI/GUI.h
View file @
bfa297ce
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#define SystemSupplierECUHardwareVersionNumberApp ((uint16_t)(10201))
/*硬件版本号 HV:01.02.00*/
#define SystemSupplierECUHardwareVersionNumberApp ((uint16_t)(10201))
/*硬件版本号 HV:01.02.00*/
#define SystemSupplierECUSoftwareInformationApp ((uint16_t)(10101))
/*软件版本号 SV:01.01.00*/
#define SystemSupplierECUSoftwareInformationApp ((uint16_t)(10101))
/*软件版本号 SV:01.01.00*/
#define systemSupplierECUFlashInformationApp ((uint16_t)(1
1
))
/*FLASH版本号 FV:00.11*/
#define systemSupplierECUFlashInformationApp ((uint16_t)(1
2
))
/*FLASH版本号 FV:00.11*/
typedef
struct
typedef
struct
{
{
...
...
source/Application/Graphic/UE/DisplaySch_user.c
View file @
bfa297ce
...
@@ -23,7 +23,7 @@ UE_CtrlInfo_Struct_t UE_CtrlInfo;
...
@@ -23,7 +23,7 @@ UE_CtrlInfo_Struct_t UE_CtrlInfo;
uint8_t
BG_display_flag
;
uint8_t
BG_display_flag
;
#pragma ghs section bss = default
#pragma ghs section bss = default
uint
32
_t
HMI_StartAnimationFrameCnt
;
uint
16
_t
HMI_StartAnimationFrameCnt
;
static
void
switch_branch
(
void
);
static
void
switch_branch
(
void
);
...
@@ -242,11 +242,10 @@ void Display_StartAnimationService(void)
...
@@ -242,11 +242,10 @@ void Display_StartAnimationService(void)
HMI_StartAnimationFrameCnt
++
;
HMI_StartAnimationFrameCnt
++
;
m16_FrameCnt
=
HMI_StartAnimationFrameCnt
;
m16_FrameCnt
=
HMI_StartAnimationFrameCnt
;
if
((
m16_FrameCnt
%
3
)
==
0
)
if
((
m16_FrameCnt
%
4
)
==
0u
)
{
{
//loc_Disable_Window_App();
GUI_Display_Animation_Frame
(
m16_FrameCnt
/
4u
);
GUI_Display_Animation_Frame
(
m16_FrameCnt
/
3u
);
//GUI_Display_background();
}
}
}
}
void
Display_StartAnimationExit
(
void
)
void
Display_StartAnimationExit
(
void
)
...
@@ -261,6 +260,11 @@ void Display_StartAnimationExit(void)
...
@@ -261,6 +260,11 @@ void Display_StartAnimationExit(void)
GUI_Display_background
();
GUI_Display_background
();
}
}
uint16_t
Common_GetHMI_StartAnimationFrameCnt
(
void
)
{
return
HMI_StartAnimationFrameCnt
;
}
/*----菜单----*/
/*----菜单----*/
void
Display_MenuEnter
(
void
)
void
Display_MenuEnter
(
void
)
{
{
...
...
source/Application/Graphic/UE/DisplaySch_user.h
View file @
bfa297ce
...
@@ -19,6 +19,8 @@
...
@@ -19,6 +19,8 @@
#define FUNC_ENABLE 1u
#define FUNC_ENABLE 1u
#define FUNC_DISABLE 0u
#define FUNC_DISABLE 0u
#define FRAMECNTFLAG 64u
typedef
struct
typedef
struct
{
{
uint8_t
u8KEY_UP
;
uint8_t
u8KEY_UP
;
...
@@ -88,6 +90,6 @@ void HMI_Clear_KEY_MENU(void);
...
@@ -88,6 +90,6 @@ void HMI_Clear_KEY_MENU(void);
void
HMI_Clear_KEY_ODOTRIP
(
void
);
void
HMI_Clear_KEY_ODOTRIP
(
void
);
void
Meter_Mode_conversion
(
void
);
void
Meter_Mode_conversion
(
void
);
uint16_t
Common_GetHMI_StartAnimationFrameCnt
(
void
);
#endif
#endif
source/System/tasks.c
View file @
bfa297ce
...
@@ -122,11 +122,19 @@ void Sys_Run_Mode_Pseudo_Real_Time_Tasks(void)
...
@@ -122,11 +122,19 @@ void Sys_Run_Mode_Pseudo_Real_Time_Tasks(void)
------------------------------------------------------------------------------*/
------------------------------------------------------------------------------*/
void
Sys_Run_Mode_2ms_Tasks
(
void
)
void
Sys_Run_Mode_2ms_Tasks
(
void
)
{
{
uint16_t
m16_FrameCnt
;
UDS_KL15_init
();
UDS_KL15_init
();
Analog_Signal_Conv_Service
();
Analog_Signal_Conv_Service
();
Sys_Status_Update_Service
();
Sys_Status_Update_Service
();
Common_Input_Para
();
Common_Input_Para
();
m16_FrameCnt
=
Common_GetHMI_StartAnimationFrameCnt
();
m16_FrameCnt
=
m16_FrameCnt
/
4u
;
if
(
m16_FrameCnt
>=
FRAMECNTFLAG
)
{
Gauges_Time_Xms_Count
(
2
);
Gauges_Time_Xms_Count
(
2
);
}
UDS_10ms_Service
();
UDS_10ms_Service
();
}
}
/*============================================================================*/
/*============================================================================*/
...
...
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