Commit da37d8ec authored by hu's avatar hu

調整界面顯示

parent 1c04291e
No preview for this file type
This diff is collapsed.
project .intvect 1536
project .text 313836
project .text 314828
project .rodata 410775
project .secinfo 120
project .syscall 6
......
......@@ -265,11 +265,6 @@ void AirPressure_AdcData_Filter(void)
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)
{
......
......@@ -49,31 +49,12 @@ static const uint16_t GaugesDataInInit[GaugesTotal][3][25] =
/*指示类型*/ /*表头1 表头2 表头3 表头4*/ /*表头5*/ /*表头6*/ /*表头7*/
static const uint8_t GaugesIndicatType[GaugesTotal] = {LEDOtherType, LEDOtherType, LEDTempType, LEDGasType, LEDGasType, LEDGasType, LEDOtherType}; /*初始化表头显示类型,例如水温,气压*/
/*每个表头包含的参数个数*/ /*表头1 表头2 表头3 表头4*/
static const uint8_t GaugesParaNum[GaugesTotal] = {12, 6, 13, 19, 19, 19, 15};
/*每个表头IGON后开始走动时间*/ /*表头1 表头2 表头3 表头4 表头5 表头6*/
static const uint16_t GaugesStarMoveTime[GaugesTotal] =
{
0,
0,
0,
0,
0,
0,
0,
}; /*0是上电就开始走动,其他参数是ms*/
/*每个表头IGON后开始走动时间*/ /*表头1 表头2 表头3 表头4 表头5 表头6*/
static const uint16_t GaugesStarMoveTime[GaugesTotal] = {3000, 3000, 3000, 3000, 3000, 0, 0,}; /*0是上电就开始走动,其他参数是ms*/
/*每个表头IGON后是否自检*/ /*表头1 表头2 表头3 表头4 表头5 表头6*/
static const uint16_t GaugesTest[GaugesTotal] =
{
1,
1,
1,
1,
1,
0,
0,
}; /*1是自检,0不自检*/
static const uint16_t GaugesTest[GaugesTotal] = {1, 1, 1, 1, 1, 0, 0,}; /*1是自检,0不自检*/
/*每个表头自检走动每格时间*/
const uint16_t SeftTest_Gauges_Times[GaugesTotal] = {1500 / (30 + 1), 1500 / (27 + 1), 1500 / (12 + 1), 1500 / (18 + 1), 1500 / (18 + 1), 0, 0};
uint16_t RealDataIn[GaugesTotal];
......
This diff is collapsed.
......@@ -1687,7 +1687,7 @@ uint8_t LED_BRAKE_AIR_or_EBS_YELLOW_R_Judgement(void)
{
uint8_t u8Result = 0u;
uint8_t m_Condition1 = 0u;
m_Condition1 = (uint8_t)Get_ID_18F0010B_Sig_ABSorEBS_AmberWarnSt_power_veh();
m_Condition1 = (uint8_t)Get_ID_18F0010B_Sig_EBS_Amber_Warning_State();
if (m_Condition1 == 1u)
{
......@@ -1771,7 +1771,7 @@ uint8_t LED_ABS_R_Judgement(void)
uint8_t m_Condition2 = 0u;
m_Condition1 = (uint8_t)Line_In_Get_Status(LINE_IN_ABS);
m_Condition2 = (uint8_t)Get_ID_18F0010B_Sig_ABSorEBS_AmberWarnSt_power_veh();
m_Condition2 = (uint8_t)Get_ID_18F0010B_Sig_EBS_Amber_Warning_State();
if ((m_Condition1 == 1u) || (m_Condition2 == 1u))
{
......
......@@ -137,7 +137,7 @@ typedef union
uint8_t Not_used8 : 1 ;
uint8_t TURN_L_Lamp_Status : 1 ;
uint8_t Not_used9 : 1 ;
uint8_t Not_used10 : 1 ;
uint8_t Not_used10 : 1 ;
} bit;
} _Msg18FF3E17Map;
void Can_Set_Buff_18FF3E17(uint8_t CopyData [])
......
......@@ -4053,12 +4053,16 @@ void GUI_BG_UserSet_Display(uint8_t Mode)
--------------------------------------------------------------------------*/
void GUI_BG_UserSet_Date_Display(uint8_t Mode)
{
uint8_t YEAR_Value = 0u;
uint16_t YEAR_Value = 0u;
uint8_t MOnth_Value = 0u;
uint8_t Data_Value = 0u;
if (Mode == GUI_DISP_MODE_NORMAL)
{
YEAR_Value = User_set_Num.Year;
MOnth_Value = User_set_Num.Month;
Data_Value = User_set_Num.Date;
GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_nian, GUI_BLENDMODE_SRC_OVER); /*年*/
GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_yue, GUI_BLENDMODE_SRC_OVER); /*月*/
GUI_General_Display(MENU_Sprite, CN_User_Menu3_03_ri, GUI_BLENDMODE_SRC_OVER); /*日*/
......@@ -4115,6 +4119,9 @@ void GUI_BG_UserSet_Time_Display(uint8_t Mode)
if (Mode == GUI_DISP_MODE_NORMAL)
{
Hour_Value = User_set_Num.Hour;
Minute_Value = User_set_Num.Minute;
GUI_Translate_Display(MENU_Sprite, Nb_20_maohao, 440u, 218u, GUI_BLENDMODE_SRC_OVER); /*冒号*/
switch (bCurMenuIDX)
......
......@@ -9,7 +9,7 @@
#define Language_En 0u
#define Language_Cn 1u
#define FState_COilTimeOutNum 60u /*3S*/
#define FState_COilTimeOutNum 60u /*3S*/
typedef struct
{
......@@ -78,8 +78,11 @@ typedef struct
extern volatile _Display_State_Flag State_Flag;
typedef struct
{
uint8_t SetDate; /* 设置日期标识*/
uint8_t SetTime; /* 设置时间标识*/
uint16_t Year; /* 年 */
uint8_t Month; /* 月 */
uint8_t Date; /* 日 */
uint8_t Hour; /* 时 */
uint8_t Minute; /* 分 */
uint8_t Language; /* 当前语言标识*/
uint8_t LeapYear; /* 设置闰年标识*/
uint8_t User_Gsl; /* 速度设定-高速路*/
......
......@@ -6,6 +6,7 @@
#include "Data_FuelConsump.h"
#include "CAN_Communication_Matrix.h"
#include "Common_Interface.h"
#include "RTE_TIME.h"
uint8_t bMenuSwFlag;
uint8_t g_ClearWin1;
......@@ -839,9 +840,13 @@ void Level3_3Menu_7Exit(void)
{}
/*----三级菜单----用户设定----系列子选项*/
/*日期设定*/
/*日期设定 ----- 年*/
void Level3_4Menu_1Enter_1(void)
{}
{
User_set_Num.Year = Get_RTC_YEAR();
User_set_Num.Month = Get_RTC_MONTH();
User_set_Num.Date = Get_RTC_DATE();
}
void Level3_4Menu_1Do_1(void)
{
GUI_OftenShow_Display();
......@@ -851,6 +856,7 @@ void Level3_4Menu_1Do_1(void)
void Level3_4Menu_1Exit_1(void)
{}
/*日期设定 ---- 月*/
void Level3_4Menu_1Enter_2(void)
{}
void Level3_4Menu_1Do_2(void)
......@@ -862,6 +868,7 @@ void Level3_4Menu_1Do_2(void)
void Level3_4Menu_1Exit_2(void)
{}
/*日期设定 ---- 日*/
void Level3_4Menu_1Enter_3(void)
{}
void Level3_4Menu_1Do_3(void)
......@@ -871,11 +878,25 @@ void Level3_4Menu_1Do_3(void)
GUI_BG_UserSet_Date_Display(GUI_DISP_MODE_NORMAL);
}
void Level3_4Menu_1Exit_3(void)
{}
{
if (MenuFlag.Menu_Return)
{
RTE_RTC_Set_Year(User_set_Num.Year + 2000u);
RTE_RTC_Set_Month(User_set_Num.Month);
RTE_RTC_Set_Date(User_set_Num.Date);
/*时间设定*/
MenuFlag.Menu_Return = 0;
RTE_RTC_Confirm_Overwrite();
}
}
/*时间设定 ---- 时*/
void Level3_4Menu_2Enter_1(void)
{}
{
User_set_Num.Hour = Get_RTC_HOUR();
User_set_Num.Minute = Get_RTC_MINUTE();
}
void Level3_4Menu_2Do_1(void)
{
GUI_OftenShow_Display();
......@@ -885,6 +906,7 @@ void Level3_4Menu_2Do_1(void)
void Level3_4Menu_2Exit_1(void)
{}
/*时间设定 ---- 分*/
void Level3_4Menu_2Enter_2(void)
{}
void Level3_4Menu_2Do_2(void)
......@@ -894,7 +916,17 @@ void Level3_4Menu_2Do_2(void)
GUI_BG_UserSet_Time_Display(GUI_DISP_MODE_NORMAL);
}
void Level3_4Menu_2Exit_2(void)
{}
{
if (MenuFlag.Menu_Return)
{
RTE_RTC_Set_Hour(User_set_Num.Hour);
RTE_RTC_Set_Minute(User_set_Num.Minute);
MenuFlag.Menu_Return = 0;
RTE_RTC_Confirm_Overwrite();
}
}
/*语言设定*/
void Level3_4Menu_3Enter(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment