Popups.c 39.6 KB
Newer Older
hu's avatar
hu committed
1
#include "Popups.h"
hu's avatar
hu committed
2 3 4 5
#include "Popup_List.h"
#include "Popup_Message_List.h"
#include "Sound_List.h"

hu's avatar
hu committed
6
#include "GUI.h"
hu's avatar
hu committed
7
#include "Common_Interface.h"
hu's avatar
hu committed
8 9 10 11 12 13 14
#include "Sound_Scheduler.h"
#include "Gauges.h"
#include "GaugesInterface.h"
#include "CAN_Communication_Matrix.h"

#include "Data_Gear.h"
#include "Line_in.h"
hu's avatar
hu committed
15
#include "Telltales_user.h"
hu's avatar
hu committed
16
#include "Data_CoolantTemperature.h"
17
#include "Data_VehicleSpeed.h"
hu's avatar
hu committed
18 19
#include "Data_Voltmeter.h"
#include "Data_Fuel_User.h"
hu's avatar
hu committed
20
#include "FuelConfig.h"
hu's avatar
hu committed
21 22
#include "Service_TPMS.h"

hu's avatar
hu committed
23 24
void Popups_Management_Service(void)
{
25
    Popups_Polling();
hu's avatar
hu committed
26 27 28
}

void Popups_Polling(void)
hu's avatar
hu committed
29
{
30
    uint16_t i = 0x00u;
hu's avatar
hu committed
31
    COMMON_PowerStatus_t u8IG_st;
32 33
    uint32_t u32IG_OFF_Timer = 0x00u;
    uint32_t u32IG_ON_Timer = 0x00u;
hu's avatar
hu committed
34 35 36 37
    uint8_t Can_BusOFF = 0x00u;
    uint8_t variable_1 = 0x00u;
    uint8_t variable_2 = 0x00u;
    uint8_t variable_3 = 0x00u;
38
    uint32_t variable_4 = 0x00u;
hu's avatar
hu committed
39
    uint16_t variable_5 = 0x00u;
40 41
    uint16_t V_Speed = 0u;
    uint16_t E_Speed = 0u;
hu's avatar
hu committed
42

43 44 45
    u32IG_ON_Timer = Common_GetIgnOnTime();
    u32IG_OFF_Timer = Common_GetIgnOffTime();
    u8IG_st = Common_Get_IG_Sts();
hu's avatar
hu committed
46

47 48
    V_Speed = Common_Get_Disp_V_Speed(); /*车速*/
    E_Speed = Common_Get_Act_E_Speed();  /*转速*/
hu's avatar
hu committed
49

hu's avatar
hu committed
50
    /*CAN 通讯异常*/
51
    for (i = 0u; i < ID_TOTAL_MAX; i++)
hu's avatar
hu committed
52
    {
53
        if (CAN_MSG_Status(i) == CAN_SIG_LOST)
hu's avatar
hu committed
54 55 56
        {
            Can_BusOFF++;
        }
hu's avatar
hu committed
57
    }
hu's avatar
hu committed
58

59
    if ((u32IG_ON_Timer <= PopupStart) && (u32IG_ON_Timer >= 2u))
hu's avatar
hu committed
60
    {
61
        ;
hu's avatar
hu committed
62 63 64
    }
    else
    {
65
        if (u8IG_st == COMMON_POWER_ON)
hu's avatar
hu committed
66 67
        {
            /*----第一组---------------------------------------------------------------------*/
hu's avatar
hu committed
68
            if (K_Line_Set.K_Line_LID28 == 0x01u)
hu's avatar
hu committed
69
            {
hu's avatar
hu committed
70
                /*0.--1--紧急警报-刹车*/
hu's avatar
hu committed
71 72
                variable_1 = Get_ID_CF02F2A_Sig_Advanced_Emerg_Braking_Sys_Sta();
                variable_2 = Get_ID_CF02FA0_Sig_Advanced_Emerg_Braking_Sys_Sta();
hu's avatar
hu committed
73

hu's avatar
hu committed
74 75 76 77 78 79 80
                if ((variable_1 == 0x07u) || (variable_2 == 0x07u))
                {
                    Popup_Request(POPUP1_BRAKE_BLACK);
                    Popup_Clear(POPUP1_BRAKE_BRAKE);
                    Popup_Clear(POPUP1_BRAKE_SPACING_R);
                    Popup_Clear(POPUP1_BRAKE_SPACING_COLLISION);
                    Popup_Clear(POPUP1_BRAKE_SPACING_Y);
81
                    Popup_Clear(POPUT1_ASR_OPERATE);
82
                    return;
hu's avatar
hu committed
83 84 85 86 87
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_BLACK);
                }
hu's avatar
hu committed
88

hu's avatar
hu committed
89
                /*1.--1--紧急警报-紧急制动*/
hu's avatar
hu committed
90
                variable_1 = Get_ID_CF02FA1_Sig_Advanced_Emerg_Braking_Sys_Sta();
hu's avatar
hu committed
91

hu's avatar
hu committed
92 93 94 95 96 97
                if (variable_1 == 0x07u)
                {
                    Popup_Request(POPUP1_BRAKE_BRAKE);
                    Popup_Clear(POPUP1_BRAKE_SPACING_R);
                    Popup_Clear(POPUP1_BRAKE_SPACING_COLLISION);
                    Popup_Clear(POPUP1_BRAKE_SPACING_Y);
98
                    Popup_Clear(POPUT1_ASR_OPERATE);
99
                    return;
hu's avatar
hu committed
100 101 102 103 104
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_BRAKE);
                }
hu's avatar
hu committed
105

hu's avatar
hu committed
106
                /*2.--2--车间距警报-刹车(红字)*/
hu's avatar
hu committed
107 108
                variable_1 = Get_ID_CF02F2A_Sig_Advanced_Emerg_Braking_Sys_Sta();
                variable_2 = Get_ID_CF02FA0_Sig_Advanced_Emerg_Braking_Sys_Sta();
hu's avatar
hu committed
109

hu's avatar
hu committed
110 111 112 113 114
                if ((variable_1 == 0x06u) || (variable_2 == 0x06u))
                {
                    Popup_Request(POPUP1_BRAKE_SPACING_R);
                    Popup_Clear(POPUP1_BRAKE_SPACING_COLLISION);
                    Popup_Clear(POPUP1_BRAKE_SPACING_Y);
115
                    Popup_Clear(POPUT1_ASR_OPERATE);
116
                    return;
hu's avatar
hu committed
117 118 119 120 121
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_SPACING_R);
                }
hu's avatar
hu committed
122

hu's avatar
hu committed
123
                /*3.--2--车间距警报-碰撞报警*/
hu's avatar
hu committed
124
                variable_1 = Get_ID_CF02FA1_Sig_Advanced_Emerg_Braking_Sys_Sta();
hu's avatar
hu committed
125

hu's avatar
hu committed
126 127 128 129
                if (variable_1 == 0x06u)
                {
                    Popup_Request(POPUP1_BRAKE_SPACING_COLLISION);
                    Popup_Clear(POPUP1_BRAKE_SPACING_Y);
130
                    Popup_Clear(POPUT1_ASR_OPERATE);
131
                    return;
hu's avatar
hu committed
132 133 134 135 136
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_SPACING_COLLISION);
                }
hu's avatar
hu committed
137

hu's avatar
hu committed
138
                /*4.--3--车间距警报-刹车(黄字)*/
hu's avatar
hu committed
139 140 141 142 143 144
                variable_1 = Get_ID_CF02F2A_Sig_Advanced_Emerg_Braking_Sys_Sta();
                variable_2 = Get_ID_CF02FA0_Sig_Advanced_Emerg_Braking_Sys_Sta();

                if ((variable_1 == 0x05u) || (variable_2 == 0x05u))
                {
                    Popup_Request(POPUP1_BRAKE_SPACING_Y);
145
                    Popup_Clear(POPUT1_ASR_OPERATE);
146
                    return;
hu's avatar
hu committed
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_SPACING_Y);
                }
            }
            else
            {
                Popup_Clear(POPUP1_BRAKE_BLACK);
                Popup_Clear(POPUP1_BRAKE_BRAKE);
                Popup_Clear(POPUP1_BRAKE_SPACING_R);
                Popup_Clear(POPUP1_BRAKE_SPACING_COLLISION);
                Popup_Clear(POPUP1_BRAKE_SPACING_Y);
            }

hu's avatar
hu committed
162
            /*5.--4--ASR工作*/
hu's avatar
hu committed
163 164
            variable_1 = Get_ID_18F0010B_Sig_ATC_or_ASR_Lamp_State();

hu's avatar
hu committed
165
            if ((variable_1 == 0x01u) && (K_Line_Set.K_Line_LID21 == 0x01u))
hu's avatar
hu committed
166 167 168 169 170 171 172
            {
                Popup_Request(POPUT1_ASR_OPERATE);
            }
            else
            {
                Popup_Delete(POPUT1_ASR_OPERATE);
            }
hu's avatar
hu committed
173

174
            /*----第二组---------------------------------------------------------------------*/
hu's avatar
hu committed
175
            /*6.--1--PTO紧急警报-刹车*/
176
            variable_1 = Get_ID_18FED900_Sig_PTO_SW();
177
            variable_2 = Line_In_Get_Status(LINE_IN_PTO); // B01
178

179
            if (((variable_1 == 0x01u) || (variable_2 == LINE_IN_LOGIC_VALID)) && (V_Speed >= 66u))
180 181 182 183 184 185 186 187
            {
                Popup_Request(POPUT2_PTO);
            }
            else
            {
                Popup_Delete(POPUT2_PTO);
            }

hu's avatar
hu committed
188
            /*7.--2--忘记松手刹车    LINE_IN_Get_PARK_BRAKE 驻车制动*/
189 190
            variable_1 = Line_In_Get_Status(LINE_IN_PARK_BRAKE);

191
            if ((variable_1 == LINE_IN_LOGIC_VALID) && (V_Speed >= 66u)) // 6.67Km
192 193 194 195 196 197 198 199
            {
                Popup_Request(POPUP2_PARKING_BRAKE);
            }
            else
            {
                Popup_Delete(POPUP2_PARKING_BRAKE);
            }

hu's avatar
hu committed
200
            /*8.--3--遥控调整车辆高度(有车速)*/
201 202
            variable_1 = Line_In_Get_Status(LINE_IN_AIR_SUS);

203
            if ((variable_1 == LINE_IN_LOGIC_VALID) && (V_Speed > 5u)) // 0.5Km
204 205 206 207 208 209 210 211 212
            {
                Popup_Request(POPUP2_AIRMATIC_HIGHT);
            }
            else
            {
                Popup_Delete(POPUP2_AIRMATIC_HIGHT);
            }

            /*----第三组---------------------------------------------------------------------*/
hu's avatar
hu committed
213
            /*9.--1--自动巡航模式*/
214
            variable_1 = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Disp();
215
            variable_2 = Common_Get_Cruise_TimeSta();
216

hu's avatar
hu committed
217
            if ((variable_1 == 0x01u) && (variable_2 == 1u))
218 219 220 221 222 223 224 225
            {
                Popup_Request(POPUP3_CRUISE);
            }
            else
            {
                Popup_Delete(POPUP3_CRUISE);
            }

hu's avatar
hu committed
226
            /*10.--2--可变SLD 模式*/
227
            variable_1 = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Disp();
228
            variable_2 = Common_Get_Cruise_SLD_TimeSta();
229

hu's avatar
hu committed
230
            if ((variable_1 == 0x03u) && (variable_2 == 1u))
231 232 233 234 235 236 237
            {
                Popup_Request(POPUP3_VARIABLE_SLD);
            }
            else
            {
                Popup_Delete(POPUP3_VARIABLE_SLD);
            }
hu's avatar
hu committed
238

239 240
            /*----第四组---------------------------------------------------------------------*/
            if (E_Speed < 350u)
hu's avatar
hu committed
241
            {
hu's avatar
hu committed
242 243 244 245
                if (K_Line_Set.K_Line_LID2B == 0x00u)
                {
                    /*11.--1--充电异常(系统检测)*/
                    variable_1 = Line_In_Get_Status(LINE_IN_CHARGE);
246 247
                    variable_2 = Gui_Get_Voltmeter_DisplayMode(); /*当前电压格数*/
                    variable_3 = Get_Voltmeter_Valid();
hu's avatar
hu committed
248

249
                    if ((variable_1 == LINE_IN_LOGIC_VALID) || ((variable_2 < 4u) && (variable_3 == 1u)))
hu's avatar
hu committed
250 251 252 253 254 255 256 257 258 259
                    {
                        Popup_Request(POPUT4_ABNORMAL_CHARGE);
                    }
                    else
                    {
                        Popup_Delete(POPUT4_ABNORMAL_CHARGE);
                    }

                    /*12.--2--油压(系统检测)*/
                    variable_1 = Line_In_Get_Status(LINE_IN_ENG_OIL);
260 261
                    variable_2 = Gui_Get_Voltmeter_DisplayMode(); /*当前电压格数*/
                    variable_3 = Get_Voltmeter_Valid();
hu's avatar
hu committed
262

263
                    if ((variable_1 == LINE_IN_LOGIC_VALID) || ((variable_2 < 4u) && (variable_3 == 1u)))
hu's avatar
hu committed
264 265 266 267 268 269 270
                    {
                        Popup_Request(POPUP4_OIL_PRESSURE);
                    }
                    else
                    {
                        Popup_Delete(POPUP4_OIL_PRESSURE);
                    }
271 272 273
                }
                else
                {
hu's avatar
hu committed
274 275
                    Popup_Clear(POPUT4_ABNORMAL_CHARGE);
                    Popup_Clear(POPUP4_OIL_PRESSURE);
276 277
                }

hu's avatar
hu committed
278
                /*13.--3--AMT初始化异常           DM1 SPN4220 Key On時*/
279 280 281 282 283 284 285 286 287 288 289
                variable_4 = Get_ID_18FECA03_Sig_SPN();

                if ((variable_4 == 4220u) && (K_Line_Set.K_Line_LID41 == 0x13u))
                {
                    Popup_Request(POPUP4_AMT_INIT_EXCE);
                }
                else
                {
                    Popup_Delete(POPUP4_AMT_INIT_EXCE);
                }

hu's avatar
hu committed
290
                /*14.--4--尿素品质异常(系统检测)*/
291 292 293 294 295 296 297 298 299
                if (0)
                {
                    Popup_Request(POPUP4_ADBLUE_QUALITY);
                }
                else
                {
                    Popup_Delete(POPUP4_ADBLUE_QUALITY);
                }

hu's avatar
hu committed
300
                /*15.--5--尿素喷射异常(系统检测)*/
301 302 303 304 305 306 307 308 309
                if (0)
                {
                    Popup_Request(POPUP4_ADBLUE_SPRAY);
                }
                else
                {
                    Popup_Delete(POPUP4_ADBLUE_SPRAY);
                }

hu's avatar
hu committed
310
                /*16.--6--尿素水补给(系统检测)*/
311 312 313 314 315 316 317 318 319
                if (0)
                {
                    Popup_Request(POPUP4_ADBLUE_SUPPLY);
                }
                else
                {
                    Popup_Delete(POPUP4_ADBLUE_SUPPLY);
                }

hu's avatar
hu committed
320
                /*17.--7--AMT初始化结束               DM1 SPN4021  Key On時*/
321 322 323 324 325 326 327 328 329 330 331
                variable_4 = Get_ID_18FECA03_Sig_SPN();

                if ((variable_4 == 4021u) && (K_Line_Set.K_Line_LID41 == 0x13u))
                {
                    Popup_Request(POPUP4_START_ENG);
                }
                else
                {
                    Popup_Delete(POPUP4_START_ENG);
                }

hu's avatar
hu committed
332
                /*18.--8--DPD自动再生*/
333 334 335 336 337 338 339 340
                if (0)
                {
                    Popup_Request(POPUP4_DPD_AUTO);
                }
                else
                {
                    Popup_Delete(POPUP4_DPD_AUTO);
                }
hu's avatar
hu committed
341 342 343
            }
            else
            {
344 345 346 347 348 349 350 351
                Popup_Clear(POPUT4_ABNORMAL_CHARGE);
                Popup_Clear(POPUP4_OIL_PRESSURE);
                Popup_Clear(POPUP4_AMT_INIT_EXCE);
                Popup_Clear(POPUP4_ADBLUE_QUALITY);
                Popup_Clear(POPUP4_ADBLUE_SPRAY);
                Popup_Clear(POPUP4_ADBLUE_SUPPLY);
                Popup_Clear(POPUP4_START_ENG);
                Popup_Clear(POPUP4_DPD_AUTO);
hu's avatar
hu committed
352 353
            }

354
            /*----第五组---------------------------------------------------------------------*/
hu's avatar
hu committed
355
            /*19.--1--过热(过热,请在安全的场所停车)有车速     LID $43 :0x82*/
356 357
            variable_1 = Coolant_Get_Valid();
            variable_2 = Coolant_Get_CurSeg();
hu's avatar
hu committed
358

359
            if (K_Line_Set.K_Line_LID43 == 0x82)
hu's avatar
hu committed
360
            {
361 362 363 364 365 366 367 368
                if ((variable_1 == 1u) && (variable_2 >= 12u))
                {
                    Popup_Request(POPUP5_OVER_HEAT);
                }
                else if (variable_2 <= 9u)
                {
                    Popup_Delete(POPUP5_OVER_HEAT);
                }
hu's avatar
hu committed
369 370 371
            }
            else
            {
372
                Popup_Clear(POPUP5_OVER_HEAT);
hu's avatar
hu committed
373 374
            }

375
            /*20.--2--冷却水(冷却液不足) B32 GND*/
376
            variable_1 = Line_In_Get_Status(LINE_IN_LOW_COOLANT);
hu's avatar
hu committed
377

378 379 380 381 382 383 384 385
            if (variable_1 == LINE_IN_LOGIC_VALID)
            {
                Popup_Request(POPUP5_LOW_COOLANT);
            }
            else
            {
                Popup_Delete(POPUP5_LOW_COOLANT);
            }
hu's avatar
hu committed
386

387
            /*21.--3--油压(机油)请在安全场所停车 发动机启动(350r/min)后、350r/min持续5秒以上时,A32信号(10ms周期监测),连续20次检出Lo时。*/
388
            variable_1 = Line_In_Get_Status(LINE_IN_ENG_OIL);
hu's avatar
hu committed
389

390 391 392 393 394 395 396 397
            if ((E_Speed > 350u) && (variable_1 == LINE_IN_LOGIC_VALID))
            {
                Popup_Request(POPUP5_ENGINE_OIL_PRESSURE);
            }
            else
            {
                Popup_Delete(POPUP5_ENGINE_OIL_PRESSURE);
            }
hu's avatar
hu committed
398

399
            /*22.--4--仪表故障-请与五十铃公司联系*/
400
            Popup_Clear(POPUP5_METER_FAILURE);
hu's avatar
hu committed
401

402
            /*23.--5--通信系统-请与五十铃公司联系*/
403 404 405 406 407 408 409 410
            if (Can_BusOFF == ID_TOTAL_MAX)
            {
                Popup_Request(POPUP5_CAN_ERROR);
            }
            else
            {
                Popup_Delete(POPUP5_CAN_ERROR);
            }
hu's avatar
hu committed
411

412
            /*24.--6--车速限制-图1   ID:18FF2300 Byte:7 Bit:4,3   10(B)*/
413
            variable_1 = Get_ID_18FF2300_Sig_Engine_Derate();
hu's avatar
hu committed
414

415 416 417 418 419 420 421 422
            if ((variable_1 == 0x02u) || (variable_1 == 0x03u))
            {
                Popup_Request(POPUP5_SPEED_LIMIT);
            }
            else
            {
                Popup_Delete(POPUP5_SPEED_LIMIT);
            }
hu's avatar
hu committed
423

424
            /*25.--7--扭矩限制-图2 ID:18FF2300 Byte:7 Bit:4,3   01(B)*/
425 426 427 428 429 430 431 432
            if ((variable_1 == 0x01u) || (variable_1 == 0x03u))
            {
                Popup_Request(POPUP5_TORQUE_REDUCTION);
            }
            else
            {
                Popup_Delete(POPUP5_TORQUE_REDUCTION);
            }
hu's avatar
hu committed
433

434
            /*26.--8--尿素品质异常-图1 ID:18FF2300 Byte:3 Bit:6,5  01(B)*/
435
            variable_1 = Get_ID_18FF2300_Sig_Amber3();
hu's avatar
hu committed
436

437 438 439 440 441 442 443 444
            if (variable_1 == 0x01u)
            {
                Popup_Request(POPUP5_INCORRECT_ADBLUE);
            }
            else
            {
                Popup_Delete(POPUP5_INCORRECT_ADBLUE);
            }
hu's avatar
hu committed
445

446
            /*27.--9--临界排放故障-图1 ID:18FF2300 Byte:7 Bit:6,5  01(B)*/
447
            variable_1 = Get_ID_18FF2300_Sig_EXH_System();
hu's avatar
hu committed
448

449 450 451 452 453 454 455 456
            if (variable_1 == 1)
            {
                Popup_Request(POPUP5_CRITICAL_EMISSION);
            }
            else
            {
                Popup_Delete(POPUP5_CRITICAL_EMISSION);
            }
hu's avatar
hu committed
457

458
            if (K_Line_Set.K_Line_LID41 == 0x13u)
459
            {
460
                /*28.--10--AMT异常-图1 ID:18FF8503 Byte:1 Bit:4,3 01(B) LID $41 : 0x13          PGN:65413  TC2DIS*/
hu's avatar
hu committed
461
                variable_1 = Get_ID_18FF8503_Sig_Spanner_Warning();
hu's avatar
hu committed
462

hu's avatar
hu committed
463 464 465 466 467 468 469 470
                if (variable_1 == 1)
                {
                    Popup_Request(POPUP5_AMT_SPANNER_WARNING);
                }
                else
                {
                    Popup_Delete(POPUP5_AMT_SPANNER_WARNING);
                }
hu's avatar
hu committed
471

472
                /*29.--11--AMT异常(气压低下)-图1 ID:18FF8503 Byte:2 Bit:6,5 01(B) LID $41 : 0x13  PGN:65413  TC2DIS*/
hu's avatar
hu committed
473
                variable_1 = Get_ID_18FF2300_Sig_Glow_Lamp();
hu's avatar
hu committed
474

hu's avatar
hu committed
475 476 477 478 479 480 481 482
                if (variable_1 == 1)
                {
                    Popup_Request(POPUP5_AMT_LOW_AIR_WARNING);
                }
                else
                {
                    Popup_Delete(POPUP5_AMT_LOW_AIR_WARNING);
                }
483 484 485
            }
            else
            {
hu's avatar
hu committed
486 487
                Popup_Clear(POPUP5_AMT_SPANNER_WARNING);
                Popup_Clear(POPUP5_AMT_LOW_AIR_WARNING);
488
            }
hu's avatar
hu committed
489

490
            /*30.--12--胎压 低圧警報-轮胎漏气警告 ID:18011733  Byte:5 Bit:5 01(B) LID $3E : 0x01*/
hu's avatar
hu committed
491
            variable_1 = Get_TPMSFast_air_leakage();
hu's avatar
hu committed
492

493
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && (variable_1 == 0x01u))
494
            {
hu's avatar
hu committed
495
                Popup_Request(POPUP5_LOW_PRESSURE_ALARM);
496 497 498
            }
            else
            {
hu's avatar
hu committed
499
                Popup_Delete(POPUP5_LOW_PRESSURE_ALARM);
500
            }
hu's avatar
hu committed
501

502
            /*31.--13--尿素补给-补充尿素溶液-图1 ID:18FF2300 Byte:3 Bit:4,3 01(B)*/
503
            variable_1 = Get_ID_18FF2300_Sig_Amber2();
hu's avatar
hu committed
504

hu's avatar
hu committed
505
            if (variable_1 == 0x01u)
506 507 508 509 510 511 512
            {
                Popup_Request(POPUP5_APP_ADBLUE);
            }
            else
            {
                Popup_Delete(POPUP5_APP_ADBLUE);
            }
hu's avatar
hu committed
513

514
            /*32.--14--尿素余量少-无车速-图2 ID:18FF2300 Byte:3 Bit:4,3 10(B)*/
hu's avatar
hu committed
515
            variable_1 = Get_ID_18FF2300_Sig_Amber2();
hu's avatar
hu committed
516

hu's avatar
hu committed
517
            if (variable_1 == 0x02u)
518 519 520 521 522 523 524
            {
                Popup_Request(POPUP5_ADBLUE_LEVEL_LOW);
            }
            else
            {
                Popup_Delete(POPUP5_ADBLUE_LEVEL_LOW);
            }
hu's avatar
hu committed
525

526
            /*33.--15--低圧警報(低下)ID:18011733  Byte:5 Bit:8 01(B) LID $3E : 0x01*/
hu's avatar
hu committed
527 528
            variable_1 = Get_TPMSLow_Presure_Sta();

529
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && (variable_1 == 0x01u))
530
            {
hu's avatar
hu committed
531
                Popup_Request(POPUP5_LOW_FAILURE);
532 533 534
            }
            else
            {
hu's avatar
hu committed
535
                Popup_Delete(POPUP5_LOW_FAILURE);
536
            }
hu's avatar
hu committed
537

538
            /*34.--16--摄像头有污染-请与五十铃公司联系 ID:18FE5BE8 Byte7  Bit5-8 0010(B) 0011(B) LID $27: 0x01*/
hu's avatar
hu committed
539
            variable_1 = Get_ID_18FE5BE8_Sig_Camera_Status();
hu's avatar
hu committed
540

541
            if ((K_Line_Set.K_Line_LID27 == 0x01u) && ((variable_1 == 0x02u) || (variable_2 == 0x03u)))
542 543 544 545 546 547 548
            {
                Popup_Request(POPUP5_CAMERA_POLLUTION);
            }
            else
            {
                Popup_Delete(POPUP5_CAMERA_POLLUTION);
            }
hu's avatar
hu committed
549

550
            /*35.--17尿素喷射异常(停止)-图1 ID:18FF2300 Byte:3 Bit:2,1 01(B)*/
551
            variable_1 = Get_ID_18FF2300_Sig_Amber1();
hu's avatar
hu committed
552

hu's avatar
hu committed
553
            if ((variable_1 == 0x01u) || (variable_1 == 0x03u))
554
            {
hu's avatar
hu committed
555
                Popup_Request(POPUP5_AdBlue_INJ_SYSTEM);
556 557 558
            }
            else
            {
hu's avatar
hu committed
559
                Popup_Delete(POPUP5_AdBlue_INJ_SYSTEM);
560
            }
hu's avatar
hu committed
561

562
            /*36.--18--尿素喷射异常(消耗量)-图1  ID:18FF2300 Byte:3 Bit:2,1 10(B)*/
hu's avatar
hu committed
563
            variable_1 = Get_ID_18FF2300_Sig_Amber1();
hu's avatar
hu committed
564

hu's avatar
hu committed
565
            if ((variable_1 == 0x02u) || (variable_1 == 0x03u))
566
            {
hu's avatar
hu committed
567
                Popup_Request(POPUP5_AdBlue_DOS_MALFUNC);
568 569 570
            }
            else
            {
hu's avatar
hu committed
571
                Popup_Delete(POPUP5_AdBlue_DOS_MALFUNC);
572
            }
hu's avatar
hu committed
573

574
            /*37.--19--高圧警報-轮胎高压警告 ID:18011733  Byte:5 Bit:7  01(B) LID $3E : 0x01*/
hu's avatar
hu committed
575 576
            variable_1 = Get_TPMSHigh_Presure_Sta();

577
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && (variable_1 == 0x01u))
578 579 580 581 582 583 584
            {
                Popup_Request(POPUP5_TPMS_HIGH_AIR);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_HIGH_AIR);
            }
hu's avatar
hu committed
585

586
            /*38.--20--高温警報-轮胎高温警告 ID:18011733  Byte:5 Bit:6  01(B) LID $3E : 0x01*/
hu's avatar
hu committed
587 588
            variable_1 = Get_TPMSHigh_Temperature_Sta();

589
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && (variable_1 == 0x01u))
590 591 592 593 594 595 596
            {
                Popup_Request(POPUP5_TPMS_HIGH_TEMP);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_HIGH_TEMP);
            }
hu's avatar
hu committed
597

598
            /*39.--22--DPD手动再生要求1-DPD需要再生 18FD7C00 Byte:1 Bit:3-1  001:On – solid*/
599
            variable_1 = Get_ID_18FD7C00_Sig_DPF_Lamp_Status_Amber();
hu's avatar
hu committed
600

hu's avatar
hu committed
601
            if (variable_1 == 0x01u)
602 603 604 605 606 607 608
            {
                Popup_Request(POPUP5_PUSH_DPD_SWITCH1);
            }
            else
            {
                Popup_Delete(POPUP5_PUSH_DPD_SWITCH1);
            }
hu's avatar
hu committed
609

610
            /*40.--23--DPD手动再生要求2-DPD需要再生 18FD7C00 Byte:1 Bit:3-1     100:On – fast blink (1 HZ)*/
hu's avatar
hu committed
611
            variable_1 = Get_ID_18FD7C00_Sig_DPF_Lamp_Status_Amber();
hu's avatar
hu committed
612

hu's avatar
hu committed
613
            if (variable_1 == 0x04u)
614 615 616 617 618 619 620
            {
                Popup_Request(POPUP5_PUSH_DPD_SWITCH2);
            }
            else
            {
                Popup_Delete(POPUP5_PUSH_DPD_SWITCH2);
            }
hu's avatar
hu committed
621

622
            /*41.--24--TPMS故障-轮胎监控失败  ID:18011733  Byte:6 Bit:ALL 0111(B) or 1000(B) or 1001(B)*/
hu's avatar
hu committed
623
            variable_1 = Get_TPMSSensor_fault_Sta();
hu's avatar
hu committed
624
            variable_2 = CAN_MSG_Status(ID_CanMsg18011733_Msg_Count);
hu's avatar
hu committed
625

626
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && ((variable_1 == 0x01u) || (variable_2 == CAN_SIG_LOST)))
627 628 629 630 631 632 633
            {
                Popup_Request(POPUP5_TPMS_FAILURE);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_FAILURE);
            }
hu's avatar
hu committed
634

635
            /*42.--25--TPMS電池低下-轮胎监控传感器电压下降  ID:18011733  Byte:5 Bit:4  01(B)  LID $3E : 0x01*/
hu's avatar
hu committed
636 637
            variable_1 = Get_TPMSLow_Voltage_Sta();

638
            if ((K_Line_Set.K_Line_LID3E == 0x01u) && (variable_1 == 1))
639 640 641 642 643 644 645
            {
                Popup_Request(POPUP5_TPMS_MONITOR_DROP);
            }
            else
            {
                Popup_Delete(POPUP5_TPMS_MONITOR_DROP);
            }
hu's avatar
hu committed
646

hu's avatar
hu committed
647 648
            /*----第六组---------------------------------------------------------------------*/
            if (V_Speed < 66u)
649
            {
650
                /*43.--1--遥控车辆高度调整中(无车速) B30 28V*/
hu's avatar
hu committed
651
                variable_1 = Line_In_Get_Status(LINE_IN_AIR_SUS);
hu's avatar
hu committed
652

hu's avatar
hu committed
653
                if (variable_1 == 0x01u)
hu's avatar
hu committed
654 655 656 657 658 659 660
                {
                    Popup_Request(POPUP6_HEIGHT_CONTROL);
                }
                else
                {
                    Popup_Delete(POPUP6_HEIGHT_CONTROL);
                }
hu's avatar
hu committed
661

662
                /*44.--2--PTO(停车中)(无车速)  /ID:18FED900  Byte:2 Bit:8,7  01(B)   OR  B01 28V*/
hu's avatar
hu committed
663 664 665
                variable_1 = Get_ID_18FED900_Sig_PTO_SW();
                variable_2 = Line_In_Get_Status(LINE_IN_PTO);

hu's avatar
hu committed
666
                if ((variable_1 == 0x01u) || (variable_2 == 0x01u))
hu's avatar
hu committed
667 668 669 670 671 672 673
                {
                    Popup_Request(POPUP6_PTO_STOP);
                }
                else
                {
                    Popup_Delete(POPUP6_PTO_STOP);
                }
674 675 676
            }
            else
            {
hu's avatar
hu committed
677 678
                Popup_Clear(POPUP6_HEIGHT_CONTROL);
                Popup_Clear(POPUP6_PTO_STOP);
679
            }
hu's avatar
hu committed
680

hu's avatar
hu committed
681
            /*----第七组---------------------------------------------------------------------*/
682
            /*45.--1--充电异常-请与五十铃公司联系*/
hu's avatar
hu committed
683
            variable_1 = Line_In_Get_Status(LINE_IN_CHARGE);
684
            variable_2 = Common_Get_VolWarning_Sta();
hu's avatar
hu committed
685

hu's avatar
hu committed
686
            if ((variable_1 == 0x01u) || ((variable_2 == 0x01u) && (E_Speed > 350u)))
687
            {
hu's avatar
hu committed
688
                Popup_Request(POPUP7_CHARGE_ABNORMAL);
689 690 691
            }
            else
            {
hu's avatar
hu committed
692
                Popup_Delete(POPUP7_CHARGE_ABNORMAL);
693
            }
694 695

            /*46.--2--AMT異常-AMT异常  ID:18FF8503 Bite:1 Bit:2,1   LID $41 : 0x13*/
hu's avatar
hu committed
696
            variable_1 = Get_ID_18FF8503_Sig_Stop_Warning();
hu's avatar
hu committed
697

hu's avatar
hu committed
698
            if ((K_Line_Set.K_Line_LID41 == 0x13u) && (variable_1 == 0x01u))
699
            {
hu's avatar
hu committed
700
                Popup_Request(POPUP7_AMT_ERROR);
701 702 703
            }
            else
            {
hu's avatar
hu committed
704
                Popup_Delete(POPUP7_AMT_ERROR);
705
            }
hu's avatar
hu committed
706

hu's avatar
hu committed
707
            /*----第八组---------------------------------------------------------------------*/
708 709 710 711
            /*47.--1--补充燃料-油箱单位*/
            variable_1 = Fuel_Get_CurSeg();    /*格*/
            variable_2 = GetFuelSensorState(); /*燃油状态*/
            variable_5 = GetFuelResistance();  /*采集的阻值*/
hu's avatar
hu committed
712 713 714

            if (K_Line_Set.K_Line_LID43 == 0x82u)
            {
715
                if ((variable_1 <= 1) && (variable_2 == FuelSensorNormal) && (variable_5 != 65535))
hu's avatar
hu committed
716 717 718 719 720 721 722 723 724 725 726 727
                {
                    Popup_Request(POPUP8_REFUEL);
                }
                else
                {
                    Popup_Delete(POPUP8_REFUEL);
                }
            }
            else
            {
                Popup_Clear(POPUP8_REFUEL);
            }
hu's avatar
hu committed
728

hu's avatar
hu committed
729
            if (K_Line_Set.K_Line_LID41 == 0x13u)
730
            {
731
                /*48.--2--AMT过热-离合器过载 ID:18FF8503 Bite:2 Bit:4,3  001(B)  LID $41 : 0x13*/
hu's avatar
hu committed
732 733 734 735 736 737 738 739 740 741 742
                variable_1 = Get_ID_18FF8503_Sig_Clutch_Overload_warning();

                if (variable_1 == 0x01u)
                {
                    Popup_Request(POPUP8_ATM_CLUCH_OVERHEATING);
                }
                else
                {
                    Popup_Delete(POPUP8_ATM_CLUCH_OVERHEATING);
                }

743
                /*49.--3--AMT磨耗-离合器磨损 ID:18FF8503 Bite:2 Bit:2,1  001(B)  LID $41 : 0x13*/
hu's avatar
hu committed
744 745 746 747 748 749 750 751 752 753
                variable_1 = Get_ID_18FF8503_Sig_Manouvering_mode();

                if (variable_1 == 0x01u)
                {
                    Popup_Request(POPUP1_BRAKE_BRAKE);
                }
                else
                {
                    Popup_Delete(POPUP1_BRAKE_BRAKE);
                }
754 755 756
            }
            else
            {
hu's avatar
hu committed
757 758
                Popup_Clear(POPUP8_ATM_CLUCH_OVERHEATING);
                Popup_Clear(POPUP1_BRAKE_BRAKE);
759
            }
hu's avatar
hu committed
760

761 762 763
            /*50.--4--低电压报警 显示条件:发动机启动(350r/min)后,7秒检测到23.5V时 显示消失条件:10秒检测到25V以上时*/
            variable_1 = Common_Get_LOW_VOLTAGE();

hu's avatar
hu committed
764
            if ((variable_1 == 0x01u) && (E_Speed > 350)) // 23.5V
765 766 767 768 769 770 771 772 773 774 775
            {
                Popup_Request(POPUP8_LOWVOLTAGE);
            }
            else if (variable_1 == 0x00u)
            {
                Popup_Delete(POPUP8_LOWVOLTAGE);
            }

            /*51.--5--过电压报警 显示条件:发动机启动(350r/min)后,7秒检测到30.4V以上时 显示消失条件:10秒检测到29.4V以下时*/
            variable_1 = Common_Get_HIGH_VOLTAGE();

hu's avatar
hu committed
776
            if ((variable_1 == 0x01u) && (E_Speed > 350)) // 30.44V
777 778 779 780 781 782 783 784 785
            {
                Popup_Request(POPUP8_OVERVOLTAGE);
            }
            else if (variable_1 == 0x00u)
            {
                Popup_Delete(POPUP8_OVERVOLTAGE);
            }

            /*52.--6--后蹄片磨损*/
hu's avatar
hu committed
786 787 788
            variable_1 = Line_In_Get_Status(LINE_IN_WEAR2);

            if (variable_1 == LINE_IN_LOGIC_VALID)
789
            {
hu's avatar
hu committed
790
                Popup_Request(POPUP1_BRAKE_BRAKE);
791 792 793
            }
            else
            {
hu's avatar
hu committed
794
                Popup_Delete(POPUP1_BRAKE_BRAKE);
795
            }
796 797

            /*53.--7--前蹄片磨损*/
hu's avatar
hu committed
798
            variable_1 = Line_In_Get_Status(LINE_IN_WEAR_IND);
hu's avatar
hu committed
799

hu's avatar
hu committed
800
            if (variable_1 == LINE_IN_LOGIC_VALID)
801
            {
hu's avatar
hu committed
802
                Popup_Request(POPUP1_BRAKE_BRAKE);
803 804 805
            }
            else
            {
hu's avatar
hu committed
806
                Popup_Delete(POPUP1_BRAKE_BRAKE);
807
            }
hu's avatar
hu committed
808

809
            /*54.--8--DPD自动再生-DPD自动再生中  ID:18FED900 (AUXIO)  Byte:8  bit:5,4  01(B)  Engine Speed : 350rpm以上*/
hu's avatar
hu committed
810
            variable_1 = Get_ID_18FED900_Sig_DPF_Regeneration_Status();
hu's avatar
hu committed
811 812

            if ((E_Speed >= 350) && (variable_1 == 0x01u))
813
            {
hu's avatar
hu committed
814
                Popup_Request(POPUP8_DPD_AUTO);
815 816 817
            }
            else
            {
hu's avatar
hu committed
818
                Popup_Delete(POPUP8_DPD_AUTO);
819
            }
hu's avatar
hu committed
820

hu's avatar
hu committed
821
            /*----第九组---------------------------------------------------------------------*/
822
            /*55.--1--气压过低-请冲入空气*/
hu's avatar
hu committed
823 824 825
            variable_1 = (uint8_t)Line_In_Get_Status(LINE_IN_BRAKE_AIR_EBS);
            variable_2 = Common_Get_L12_Air_Sta();

826
            if ((variable_1 == LINE_IN_LOGIC_VALID) || (variable_2 == 0X01U))
hu's avatar
hu committed
827 828 829 830 831 832 833 834
            {
                Popup_Request(POPUP9_AIR_PRESSURE);
            }
            else
            {
                Popup_Delete(POPUP9_AIR_PRESSURE);
            }

835
            /*56.--2--EBS故障(红)-请与五十铃公司联系*/
hu's avatar
hu committed
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853
            variable_1 = Get_ID_18F0010B_Sig_EBS_Red_Warning_Lamp_State();
            variable_2 = CAN_MSG_Status(ID_CanMsg18F0010B_Msg_Count);

            if (K_Line_Set.K_Line_LID21 == 0x01u)
            {
                if ((variable_1 == 0x01u) || (variable_2 == CAN_SIG_LOST))
                {
                    Popup_Request(POPUP9_EBS_ERROR);
                }
                else
                {
                    Popup_Delete(POPUP9_EBS_ERROR);
                }
            }
            else
            {
                Popup_Clear(POPUP9_EBS_ERROR);
            }
854

hu's avatar
hu committed
855
            /*----第十组---------------------------------------------------------------------*/
856
            /*57.--1--省油耗建议-急加速*/
hu's avatar
hu committed
857
            if ((AccSubSpeed.AccSpeed_Flag == 1) && (User_App.User_JADD != 0xFF))
858
            {
hu's avatar
hu committed
859
                Popup_Request(POPUP10_RAPID_ACC);
860 861 862
            }
            else
            {
hu's avatar
hu committed
863
                Popup_Delete(POPUP10_RAPID_ACC);
864
            }
865 866

            /*58.--2--省油耗建议-急减速*/
hu's avatar
hu committed
867
            if ((AccSubSpeed.SubSpeed_Flag == 1) && (User_App.User_JSUB != 0xFF))
868
            {
hu's avatar
hu committed
869
                Popup_Request(POPUP10_RAPID_SUB);
870 871 872
            }
            else
            {
hu's avatar
hu committed
873
                Popup_Delete(POPUP10_RAPID_SUB);
874
            }
875 876

            /*59.--3--省油耗建议-请降低发动机转速*/
hu's avatar
hu committed
877
            variable_1 = Common_Get_OverSpeed_Status();
878 879

            if ((variable_1 == 1) && (User_App.User_Speed != 0xFF))
880
            {
hu's avatar
hu committed
881
                Popup_Request(POPUP10_REVAL_ENGINE);
882 883 884
            }
            else
            {
hu's avatar
hu committed
885
                Popup_Delete(POPUP10_REVAL_ENGINE);
886
            }
887 888 889 890

            /*60.--4--省油耗建议-请降低速度*/
            variable_1 = Common_Get_OverSpeedLine_Status();

hu's avatar
hu committed
891
            if (
892 893 894
                ((variable_1 == 1) && (K_Line_Set.K_Line_LID44 != 0xFF)) ||
                ((AccSubSpeed.GslSpeed_Flag == 0x01u) && (User_App.User_Gsl == 0x01u)) ||
                ((AccSubSpeed.YblSpeed_Flag == 0x01u) && (User_App.User_Ybl == 0x01u)))
895
            {
hu's avatar
hu committed
896
                Popup_Request(POPUP10_REVAL_SPEED);
897 898 899
            }
            else
            {
hu's avatar
hu committed
900
                Popup_Delete(POPUP10_REVAL_SPEED);
901
            }
hu's avatar
hu committed
902

hu's avatar
hu committed
903
            /*----第十一组---------------------------------------------------------------------*/
904 905
            /*61.--1--发动机机油&滤清器*/
            if (((State_Flag.User_FDJYLQQ_FLAG == 1) || (State_Flag.User_FDJYLQQ_FLAG == 2)) && (Common_Get_FDJYLQQ_Sta() == 0x01u))
906
            {
907
                Popup_Request(POPUP11_ENGINE_OIL_FILTER);
908 909 910
            }
            else
            {
hu's avatar
hu committed
911
                Popup_Delete(POPUP11_ENGINE_OIL_FILTER);
912
            }
913 914 915

            /*62.--2--燃油滤清器*/
            if (((State_Flag.User_RYLQQ_FLAG == 1) || (State_Flag.User_RYLQQ_FLAG == 2)) && (Common_Get_RYLQQ_Sta() == 0x01u))
916
            {
hu's avatar
hu committed
917
                Popup_Request(POPUP11_FUEL_FILTER);
918 919 920
            }
            else
            {
hu's avatar
hu committed
921
                Popup_Delete(POPUP11_FUEL_FILTER);
922
            }
923 924 925

            /*63.--3--变速箱油*/
            if (((State_Flag.User_BSXY_FLAG == 1) || (State_Flag.User_BSXY_FLAG == 2)) && (Common_Get_BSXY_Sta() == 0x01u))
926
            {
hu's avatar
hu committed
927
                Popup_Request(POPUP11_T_MISSION_OIL);
928 929 930
            }
            else
            {
hu's avatar
hu committed
931
                Popup_Delete(POPUP11_T_MISSION_OIL);
932
            }
933 934 935

            /*64.--4--差速器油*/
            if (((State_Flag.User_CSQY_FLAG == 1) || (State_Flag.User_CSQY_FLAG == 2)) && (Common_Get_CSQY_Sta() == 0x01u))
936
            {
hu's avatar
hu committed
937
                Popup_Request(POPUP11_DIFF_OIL);
938 939 940
            }
            else
            {
hu's avatar
hu committed
941
                Popup_Delete(POPUP11_DIFF_OIL);
942
            }
943 944 945

            /*65.--5--顺畅系统离合器油*/
            // if(((State_Flag.User_LHQY_FLAG   == 1) || (State_Flag.User_LHQY_FLAG   == 2))&&(Common_Get_LHQY_Sta() ==0x01u))
hu's avatar
hu committed
946
            if (0)
947
            {
hu's avatar
hu committed
948
                Popup_Request(POPUP11_CLUTCH_OIL);
949 950 951
            }
            else
            {
hu's avatar
hu committed
952
                Popup_Delete(POPUP11_CLUTCH_OIL);
953
            }
954 955 956

            /*66.--6--动力转向液*/
            if (((State_Flag.User_DLZXY_FLAG == 1) || (State_Flag.User_DLZXY_FLAG == 2)) && (Common_Get_DLZXY_Sta() == 0x01u))
957
            {
hu's avatar
hu committed
958
                Popup_Request(POPUP11_P_STEERING_FRUID);
959 960 961
            }
            else
            {
hu's avatar
hu committed
962
                Popup_Delete(POPUP11_P_STEERING_FRUID);
963
            }
964 965 966

            /*67.--7--更换轮胎・轮胎位置*/
            if (((State_Flag.User_LT_FLAG == 1) || (State_Flag.User_LT_FLAG == 2)) && (Common_Get_LT_Sta() == 0x01u))
967
            {
hu's avatar
hu committed
968
                Popup_Request(POPUP11_TIRE_ROTATION);
969 970 971
            }
            else
            {
hu's avatar
hu committed
972
                Popup_Delete(POPUP11_TIRE_ROTATION);
973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011
            }
        }
        else /*ig off*/
        {
            Popup_Clear(POPUP1_BRAKE_BLACK);             /*00.紧急警报-刹车*/
            Popup_Clear(POPUP1_BRAKE_BRAKE);             /*01.紧急警报-紧急制动*/
            Popup_Clear(POPUP1_BRAKE_SPACING_R);         /*02.车间距警报-刹车(红字)*/
            Popup_Clear(POPUP1_BRAKE_SPACING_COLLISION); /*03.车间距警报-碰撞报警*/
            Popup_Clear(POPUP1_BRAKE_SPACING_Y);         /*04.车间距警报-刹车(黄字)*/
            Popup_Clear(POPUT1_ASR_OPERATE);             /*05.ASR工作*/
            Popup_Clear(POPUT2_PTO);                     /*06.PTO紧急警报-刹车*/
            Popup_Clear(POPUP2_PARKING_BRAKE);           /*07.忘记松手刹车*/
            Popup_Clear(POPUP2_AIRMATIC_HIGHT);          /*08.遥控调整车辆高度(有车速)*/
            Popup_Clear(POPUP3_CRUISE);                  /*09.自动巡航模式*/
            Popup_Clear(POPUP3_VARIABLE_SLD);            /*10.可变SLD 模式*/
            Popup_Clear(POPUT4_ABNORMAL_CHARGE);         /*11.充电异常(系统检测)*/
            Popup_Clear(POPUP4_OIL_PRESSURE);            /*12.油压(系统检测)*/
            Popup_Clear(POPUP4_AMT_INIT_EXCE);           /*13.AMT初始化异常*/
            Popup_Clear(POPUP4_ADBLUE_QUALITY);          /*14.尿素品质异常(系统检测)*/
            Popup_Clear(POPUP4_ADBLUE_SPRAY);            /*15.尿素喷射异常(系统检测)*/
            Popup_Clear(POPUP4_ADBLUE_SUPPLY);           /*16.尿素水补给(系统检测)*/
            Popup_Clear(POPUP4_START_ENG);               /*17.AMT初始化结束*/
            Popup_Clear(POPUP4_DPD_AUTO);                /*18.DPD自动再生*/
            Popup_Clear(POPUP5_OVER_HEAT);               /*19.过热(过热,请在安全的场所停车)*/
            Popup_Clear(POPUP5_LOW_COOLANT);             /*20.冷却水(冷却水不足)*/
            Popup_Clear(POPUP5_ENGINE_OIL_PRESSURE);     /*21.油压异常*/
            Popup_Clear(POPUP5_METER_FAILURE);           /*22.仪表故障-请与五十铃公司联系*/
            Popup_Clear(POPUP5_CAN_ERROR);               /*23.通信系统-请与五十铃公司联系*/
            Popup_Clear(POPUP5_SPEED_LIMIT);             /*24.车速限制*/
            Popup_Clear(POPUP5_TORQUE_REDUCTION);        /*25.扭矩限制*/
            Popup_Clear(POPUP5_INCORRECT_ADBLUE);        /*26.尿素品质异常*/
            Popup_Clear(POPUP5_CRITICAL_EMISSION);       /*27.临界排放故障*/
            Popup_Clear(POPUP5_AMT_SPANNER_WARNING);     /*28.AMT异常-请重启发动机*/
            Popup_Clear(POPUP5_AMT_LOW_AIR_WARNING);     /*29.AMT异常(气压低下)*/
            Popup_Clear(POPUP5_LOW_PRESSURE_ALARM);      /*30.胎压报警-快速漏气*/
            Popup_Clear(POPUP5_APP_ADBLUE);              /*31.尿素补给-补充尿素溶液*/
            Popup_Clear(POPUP5_ADBLUE_LEVEL_LOW);        /*32.尿素余量少-无车速*/
            Popup_Clear(POPUP5_LOW_FAILURE);             /*33.胎压报警-气压低*/
            Popup_Clear(POPUP5_CAMERA_POLLUTION);        /*34.摄像头有污染-请与五十铃公司联系*/
hu's avatar
hu committed
1012 1013
            Popup_Clear(POPUP5_AdBlue_INJ_SYSTEM);       /*35.尿素喷射异常(停止)*/
            Popup_Clear(POPUP5_AdBlue_DOS_MALFUNC);      /*36.尿素喷射异常(消耗量)*/
1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046
            Popup_Clear(POPUP5_TPMS_HIGH_AIR);           /*37.高圧警報-轮胎高压警告*/
            Popup_Clear(POPUP5_TPMS_HIGH_TEMP);          /*38.高温警報-轮胎高温警告*/
            Popup_Clear(POPUP5_PUSH_DPD_SWITCH1);        /*39.DPD手动再生要求1-请按下DPD开关*/
            Popup_Clear(POPUP5_PUSH_DPD_SWITCH2);        /*40.DPD手动再生要求2-请按下DPD开关*/
            Popup_Clear(POPUP5_TPMS_FAILURE);            /*41.TPMS故障*/
            Popup_Clear(POPUP5_TPMS_MONITOR_DROP);       /*42.TPMS電池低下-轮胎监控传感器电压下降*/
            Popup_Clear(POPUP6_HEIGHT_CONTROL);          /*43.遥控车辆高度调整中(无车速)*/
            Popup_Clear(POPUP6_PTO_STOP);                /*44.PTO(停车中)*/
            Popup_Clear(POPUP7_CHARGE_ABNORMAL);         /*45.充电异常-请与五十铃公司联系*/
            Popup_Clear(POPUP7_AMT_ERROR);               /*46.AMT異常-请联系经销商*/
            Popup_Clear(POPUP8_REFUEL);                  /*47.补充燃料-油箱单位*/
            Popup_Clear(POPUP8_ATM_CLUCH_OVERHEATING);   /*48.AMT过热-选择合适的档位*/
            Popup_Clear(POPUP8_ATM_WORN_OUT);            /*49.AMT磨耗-离合器磨损*/
            Popup_Clear(POPUP8_LOWVOLTAGE);              /*50.低电压报警*/
            Popup_Clear(POPUP8_OVERVOLTAGE);             /*51.过电压报警*/
            Popup_Clear(POPUP8_BRAKE_BLOCKR);            /*52.后蹄片磨损*/
            Popup_Clear(POPUP8_BRAKE_BLOCKF);            /*53.前蹄片磨损*/
            Popup_Clear(POPUP8_DPD_AUTO);                /*54.DPD自动再生-再生将自动完成,不需要操作开关*/
            Popup_Clear(POPUP9_AIR_PRESSURE);            /*55.气压过低-请冲入空气*/
            Popup_Clear(POPUP9_EBS_ERROR);               /*56.EBS故障(红)-请与五十铃公司联系*/
            Popup_Clear(POPUP10_RAPID_ACC);              /*57.省油耗建议-急加速*/
            Popup_Clear(POPUP10_RAPID_SUB);              /*58.省油耗建议-急减速*/
            Popup_Clear(POPUP10_REVAL_ENGINE);           /*59.省油耗建议-请降低发动机转速*/
            Popup_Clear(POPUP10_REVAL_SPEED);            /*60.省油耗建议-请降低速度*/
            Popup_Clear(POPUP11_ENGINE_OIL_FILTER);      /*61.发动机机油&滤清器*/
            Popup_Clear(POPUP11_FUEL_FILTER);            /*62.燃油滤清器*/
            Popup_Clear(POPUP11_T_MISSION_OIL);          /*63.变速箱油*/
            Popup_Clear(POPUP11_DIFF_OIL);               /*64.差速器油*/
            Popup_Clear(POPUP11_CLUTCH_OIL);             /*65.顺畅系统离合器油*/
            Popup_Clear(POPUP11_P_STEERING_FRUID);       /*66.动力转向液*/
            Popup_Clear(POPUP11_TIRE_ROTATION);          /*67.更换轮胎・轮胎位置*/
        }
    }
hu's avatar
hu committed
1047 1048
}

hu's avatar
hu committed
1049 1050
void Popups_Displaying(uint8_t PopupMsg)
{
1051
    if (PopupMsg < POPUP_MSG_NUMBER_TOTAL)
hu's avatar
hu committed
1052
    {
1053
        switch (PopupMsgAttributeTable[PopupMsg].Type)
hu's avatar
hu committed
1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064
        {
        case POPUP_TYPE_GENERAL:
            GUI_General_Popup_Display(PopupMsg);
            break;

        default:
            break;
        }
    }
}

hu's avatar
hu committed
1065 1066 1067 1068
void Popups_Sound_Playing(uint8_t PopupSnd)
{
    uint8_t ReqCode = 0u;

1069
    ReqCode = Popup_Get_Current_Sound_Req_Code();
hu's avatar
hu committed
1070

1071
    switch (PopupSnd)
hu's avatar
hu committed
1072 1073
    {
    default:
1074
        if (ReqCode)
hu's avatar
hu committed
1075 1076 1077 1078 1079 1080
            Sound_Request(PopupSnd, ReqCode);
        else
            Sound_Delete(PopupSnd);
        break;
    }
}