Popups.c 30.4 KB
Newer Older
hu's avatar
hu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#include "Popups.h"
#include "Common_Interface.h"
#include "GUI.h"
#include "Sound_Scheduler.h"

#include "Gauges.h"
#include "GaugesInterface.h"

#include "CAN_Communication_Matrix.h"
#include "Popup_List.h"
#include "Telltales.h"

#include "Data_Gear.h"
#include "Line_in.h"

#include "Data_CoolantTemperature.h"
#include "Data_Voltmeter.h"
#include "Data_Fuel_User.h"

uint8_t PopupSeatBeltDrReq;
uint8_t PopupSeatBeltPaReq;
uint8_t PopupESCStatBackup;

GUIRadarFlashCtrlStruct GUIRADARSysFailureFlash;

uint16_t  StartupAnimationTimer;
void      GUI_RADAR_Sys_Failure_Flash_Reset(void);
void      GUI_RADAR_Sys_Failure_Flash_Reset(void)
{
    if ( GUIRADARSysFailureFlash.Cnt == 0xFF )
    {
        GUIRADARSysFailureFlash.Backup = 0;
        GUIRADARSysFailureFlash.Cnt    = 0;
    }
    else if ( GUIRADARSysFailureFlash.Cnt != 0 )
    {
        GUIRADARSysFailureFlash.Cnt = 0xFF;
    }
}


uint8_t wbytest = 0 ;
hu's avatar
hu committed
43
uint8_t wbyTrigger[6] = {0};
hu's avatar
hu committed
44 45 46 47 48 49 50
void Popups_Management_Service(void)
{
    /*    uint8_t PopupMsg = 0u;
        uint8_t PopupSnd = 0u;*/

    //Popups_Polling( );
    uint8_t i = 0 ;
hu's avatar
hu committed
51 52 53
    for (i = 0 ; i < POPUP_MAX ; i ++)
    {
        if (i == wbytest )
hu's avatar
hu committed
54 55
            Popup_Request(i);
        else
hu's avatar
hu committed
56
            Popup_Delete(i);
hu's avatar
hu committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
    }

    //wbytest = Popup_Get_Current_Message();

    /*    PopupMsg = Popup_Get_Current_Message();
        PopupSnd = Popup_Get_Current_Sound();

        Popups_Displaying(PopupMsg);*/
}

uint8_t Get_wbyPopupTest(void)
{
    return wbytest ;
}

void Popups_Polling(void)
hu's avatar
hu committed
73 74 75
{
    uint32_t Ign_Time ;
    uint8_t EOL = 0x00 ;
hu's avatar
hu committed
76
    COMMON_PowerStatus_t    PowerSts ;
hu's avatar
hu committed
77
    //共用参数
hu's avatar
hu committed
78 79
    uint8_t V_Speed = 0 ;//车速
    uint8_t E_Speed = 0 ;//转速
hu's avatar
hu committed
80
    uint8_t variable_1 , variable_2, variable_3, variable_4, variable_5;
hu's avatar
hu committed
81 82 83

    uint16_t KL30_Volt = 0 ;

hu's avatar
hu committed
84
    if (Get_Voltmeter_Valid())
hu's avatar
hu committed
85 86 87
    {
        KL30_Volt = Get_Voltmeter_AvrVoltage();
    }
hu's avatar
hu committed
88 89

    if (Common_Get_IG_Sts_Valid())
hu's avatar
hu committed
90 91 92 93 94 95 96 97 98
    {
        Ign_Time = Common_GetIgnOnTime();
        PowerSts = Common_Get_IG_Sts();
    }
    else
    {
        Ign_Time = 0 ;
        PowerSts = COMMON_POWER_OFF ;
    }
hu's avatar
hu committed
99

hu's avatar
hu committed
100 101

    //车速有效判定
hu's avatar
hu committed
102
    if (Common_Get_Act_V_Speed_Valid())
hu's avatar
hu committed
103 104 105 106 107 108 109 110
    {
        V_Speed = Common_Get_Act_V_Speed();
    }
    else
    {
        V_Speed = 0 ;
    }
    //转速有效判定
hu's avatar
hu committed
111
    if (Common_Get_Act_E_Speed_Valid())
hu's avatar
hu committed
112 113 114 115 116 117 118
    {
        E_Speed = Common_Get_Act_E_Speed();
    }
    else
    {
        E_Speed = 0 ;
    }
hu's avatar
hu committed
119 120 121 122




hu's avatar
hu committed
123 124 125
    //0.紧急警报-刹车
    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
126
    if (EOL == 0x01)
hu's avatar
hu committed
127
    {
hu's avatar
hu committed
128
        if (variable_1 == 7 || variable_2 == 7)
hu's avatar
hu committed
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
        {
            Popup_Request(POPUP1_BRAKE_BLACK);
        }
        else
        {
            Popup_Delete(POPUP1_BRAKE_BLACK);
        }
    }
    else
    {
        Popup_Delete(POPUP1_BRAKE_BLACK);
    }


    //1.紧急警报-紧急制动
    variable_1 = Get_ID_CF02FA1_Sig_Advanced_Emerg_Braking_Sys_Sta();
hu's avatar
hu committed
145
    if (EOL == 0x01)
hu's avatar
hu committed
146
    {
hu's avatar
hu committed
147
        if (variable_1 == 7)
hu's avatar
hu committed
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
        {
            Popup_Request(POPUP1_BRAKE_BRAKE);
        }
        else
        {
            Popup_Delete(POPUP1_BRAKE_BRAKE);
        }
    }
    else
    {
        Popup_Delete(POPUP1_BRAKE_BRAKE);
    }


    //2.车间距警报-刹车(红字)
    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
165
    if (EOL == 0x01)
hu's avatar
hu committed
166
    {
hu's avatar
hu committed
167
        if (variable_1 == 6 || variable_2 == 6)
hu's avatar
hu committed
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
        {
            Popup_Request(POPUP1_BRAKE_SPACING_R);
        }
        else
        {
            Popup_Delete(POPUP1_BRAKE_SPACING_R);
        }
    }
    else
    {
        Popup_Delete(POPUP1_BRAKE_SPACING_R);
    }


    //3.车间距警报-碰撞报警
    variable_1 = Get_ID_CF02FA1_Sig_Advanced_Emerg_Braking_Sys_Sta();
hu's avatar
hu committed
184
    if (EOL == 0x01)
hu's avatar
hu committed
185
    {
hu's avatar
hu committed
186
        if (variable_1 == 6)
hu's avatar
hu committed
187
        {
hu's avatar
hu committed
188
            Popup_Request(POPUP1_BRAKE_SPACING_COLLISION    );
hu's avatar
hu committed
189 190 191
        }
        else
        {
hu's avatar
hu committed
192
            Popup_Delete(POPUP1_BRAKE_SPACING_COLLISION );
hu's avatar
hu committed
193 194 195 196
        }
    }
    else
    {
hu's avatar
hu committed
197
        Popup_Delete(POPUP1_BRAKE_SPACING_COLLISION );
hu's avatar
hu committed
198 199 200 201 202 203
    }


    //4.车间距警报-刹车(黄字)
    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
204
    if (EOL == 0x01)
hu's avatar
hu committed
205
    {
hu's avatar
hu committed
206
        if (variable_1 == 5 || variable_2 == 5)
hu's avatar
hu committed
207
        {
hu's avatar
hu committed
208
            Popup_Request(POPUP1_BRAKE_SPACING_Y);
hu's avatar
hu committed
209 210 211 212 213 214 215 216 217 218
        }
        else
        {
            Popup_Delete(POPUP1_BRAKE_SPACING_Y);
        }
    }


    //5.ASR工作
    variable_1 = Get_ID_18F0010B_Sig_ASR_Brake_Control_Active();
hu's avatar
hu committed
219
    if (variable_1 == 1)
hu's avatar
hu committed
220
    {
hu's avatar
hu committed
221
        Popup_Request(POPUT1_ASR_OPERATE);
hu's avatar
hu committed
222 223 224 225 226 227 228 229 230
    }
    else
    {
        Popup_Delete(POPUT1_ASR_OPERATE);
    }

    //6.PTO紧急警报-刹车
    variable_1 = Get_ID_18FED900_Sig_PTO_SW();
    variable_2 = Line_In_Get_Status(LINE_IN_PTO);//B01
hu's avatar
hu committed
231 232
    if (V_Speed && (variable_1 || variable_2))
    {
hu's avatar
hu committed
233 234 235 236 237 238 239 240
        Popup_Request(POPUT2_PTO);
    }
    else
    {
        Popup_Delete(POPUT2_PTO);
    }
    //7.忘记松手刹车    LINE_IN_Get_PARK_BRAKE 驻车制动
    variable_1 = Line_In_Get_Status(LINE_IN_PARK_BRAKE);//获取硬线结果
hu's avatar
hu committed
241
    if ((V_Speed > 66) && (variable_1 == LINE_IN_LOGIC_VALID)) //6.67Km
hu's avatar
hu committed
242 243 244 245 246 247 248 249 250 251
    {
        Popup_Request(POPUP2_PARKING_BRAKE);
    }
    else
    {
        Popup_Delete(POPUP2_PARKING_BRAKE);
    }

    //8.遥控调整车辆高度(有车速)
    variable_1 = Line_In_Get_Status(LINE_IN_AIR_SUS);//获取硬线结果
hu's avatar
hu committed
252
    if ((V_Speed > 5) && (variable_1 == LINE_IN_LOGIC_VALID)) //0.5Km
hu's avatar
hu committed
253 254 255 256 257 258 259 260 261
    {
        Popup_Request(POPUP2_AIRMATIC_HIGHT);
    }
    else
    {
        Popup_Delete(POPUP2_AIRMATIC_HIGHT);
    }

    //9.自动巡航模式
hu's avatar
hu committed
262

hu's avatar
hu committed
263
    variable_1 = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Disp();
hu's avatar
hu committed
264
    if ((Ign_Time > 5000) && (variable_1 == 1)) //5s内不显示
hu's avatar
hu committed
265
    {
hu's avatar
hu committed
266
        Popup_Request(POPUP3_CRUISE);
hu's avatar
hu committed
267 268 269 270 271 272 273 274
    }
    else
    {
        Popup_Delete(POPUP3_CRUISE);
    }

    //10.可变SLD 模式
    variable_1 = Get_ID_18FF4100_Sig_Cruise_VariableSLD_Disp();
hu's avatar
hu committed
275
    if ((Ign_Time > 5000) && (variable_1 == 3)) //5s内不显示
hu's avatar
hu committed
276
    {
hu's avatar
hu committed
277
        Popup_Request(POPUP3_VARIABLE_SLD);
hu's avatar
hu committed
278 279 280 281 282 283 284 285
    }
    else
    {
        Popup_Delete(POPUP3_VARIABLE_SLD);
    }

    //11.充电异常(系统检测)
    variable_1 = Line_In_Get_Status(LINE_IN_CHARGE);
hu's avatar
hu committed
286 287 288 289
    if (EOL == 0X00)
    {
        //检出A34信号(10ms周期监测)时(Lo 或 电压值<21V连续500回以上),且EOL:LID$2B=0x00
        if ((E_Speed < 350) && (variable_1 == LINE_IN_LOGIC_VALID)) //转速350R/min
hu's avatar
hu committed
290
        {
hu's avatar
hu committed
291
            if (variable_1)
hu's avatar
hu committed
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308
            {
                Popup_Request(POPUT4_ABNORMAL_CHARGE);
            }
            else
            {
                Popup_Delete(POPUT4_ABNORMAL_CHARGE);
            }
        }
    }
    else
    {
        Popup_Delete(POPUT4_ABNORMAL_CHARGE);
    }


    //12.油压(系统检测)
    variable_1 = Line_In_Get_Status(LINE_IN_ENG_OIL);
hu's avatar
hu committed
309
    if (EOL == 0X00)
hu's avatar
hu committed
310
    {
hu's avatar
hu committed
311
        if ((E_Speed < 350) && (variable_1 == LINE_IN_LOGIC_VALID)) //转速350R/min
hu's avatar
hu committed
312
        {
hu's avatar
hu committed
313
            if (variable_1)
hu's avatar
hu committed
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329
            {
                Popup_Request(POPUP4_OIL_PRESSURE);
            }
            else
            {
                Popup_Delete(POPUP4_OIL_PRESSURE);
            }
        }
    }
    else
    {
        Popup_Delete(POPUP4_OIL_PRESSURE);
    }


    //13.AMT初始化异常           DM1 SPN4220 Key On時
hu's avatar
hu committed
330
    if (EOL == 0x13)
hu's avatar
hu committed
331
    {
hu's avatar
hu committed
332
        if (PowerSts == COMMON_POWER_ON)
hu's avatar
hu committed
333 334 335 336 337 338 339 340 341 342 343 344
        {
            Popup_Request(POPUP4_AMT_INIT_EXCE);
        }
        else
        {
            Popup_Delete(POPUP4_AMT_INIT_EXCE);
        }
    }
    else
    {
        Popup_Delete(POPUP4_AMT_INIT_EXCE);
    }
hu's avatar
hu committed
345

hu's avatar
hu committed
346 347 348 349

    //14.尿素品质异常(系统检测)
    //variable_1 = Get_ID_18FF2300_Sig_Amber3();
    //if(variable_1 == 1 )
hu's avatar
hu committed
350
    if (PowerSts == COMMON_POWER_ON)
hu's avatar
hu committed
351
    {
hu's avatar
hu committed
352
        Popup_Request(POPUP4_ADBLUE_QUALITY);
hu's avatar
hu committed
353 354 355 356 357 358 359 360 361
    }
    else
    {
        Popup_Delete(POPUP4_ADBLUE_QUALITY);
    }

    //15.尿素喷射异常(系统检测)
    //variable_1 = Get_ID_18FF2300_Sig_Amber1();
    //if(variable_1 == 1)
hu's avatar
hu committed
362
    if (PowerSts == COMMON_POWER_ON)
hu's avatar
hu committed
363
    {
hu's avatar
hu committed
364
        Popup_Request(POPUP4_ADBLUE_SPRAY);
hu's avatar
hu committed
365 366 367 368 369 370 371 372 373
    }
    else
    {
        Popup_Delete(POPUP4_ADBLUE_SPRAY);
    }

    //16.尿素水补给(系统检测)
    //variable_1 = Get_ID_18FF2300_Sig_Amber2();
    //if(variable_1 == 1)
hu's avatar
hu committed
374
    if (PowerSts == COMMON_POWER_ON)
hu's avatar
hu committed
375
    {
hu's avatar
hu committed
376
        Popup_Request(POPUP4_ADBLUE_SUPPLY);
hu's avatar
hu committed
377 378 379 380 381 382 383
    }
    else
    {
        Popup_Delete(POPUP4_ADBLUE_SUPPLY);
    }

    //17.AMT初始化结束               DM1 SPN4021  Key On時
hu's avatar
hu committed
384
    if (EOL == 0x13)
hu's avatar
hu committed
385
    {
hu's avatar
hu committed
386
        if (PowerSts == COMMON_POWER_ON)
hu's avatar
hu committed
387 388 389 390 391 392
        {
            Popup_Request(POPUP4_START_ENG);
        }
        else
        {
            Popup_Delete(POPUP4_START_ENG);
hu's avatar
hu committed
393
        }
hu's avatar
hu committed
394 395 396 397
    }
    else
    {
        Popup_Delete(POPUP4_START_ENG);
hu's avatar
hu committed
398 399
    }

hu's avatar
hu committed
400 401
    //18.DPD自动再生
    //variable_1 = Get_ID_18FED900_Sig_DPF_Regeneration_Status();
hu's avatar
hu committed
402
    if (PowerSts == COMMON_POWER_ON)
hu's avatar
hu committed
403 404 405 406 407 408 409 410 411 412 413
    {
        Popup_Request(POPUP4_DPD_AUTO);
    }
    else
    {
        Popup_Delete(POPUP4_DPD_AUTO);
    }


    //19.过热(过热,请在安全的场所停车)有车速     LID $43 :0x82
    //variable_1 = Get_ID_18FEEE00_Sig_Engine_Coolant_Temperature();
hu's avatar
hu committed
414 415
    if (V_Speed && (Coolant_Get_CurSeg() > 10))
    {
hu's avatar
hu committed
416 417 418 419 420 421 422
        Popup_Request(POPUP5_OVER_HEAT_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_OVER_HEAT_SPEED);
    }
    //20.过热(冷却液温度过高)         无车速  LID $43 :0x82
hu's avatar
hu committed
423
    if ((V_Speed == 0) && (Coolant_Get_CurSeg() > 10))
hu's avatar
hu committed
424 425 426 427 428 429 430 431 432 433
    {
        Popup_Request(POPUP5_OVER_HEAT);
    }
    else
    {
        Popup_Delete(POPUP5_OVER_HEAT);
    }

    //21.冷却水(冷却液不足) B32 GND
    variable_1 = Line_In_Get_Status(LINE_IN_LOW_COOLANT);
hu's avatar
hu committed
434
    if (V_Speed && variable_1)
hu's avatar
hu committed
435 436 437 438 439 440 441 442
    {
        Popup_Request(POPUP5_LOW_COOLANT_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_LOW_COOLANT_SPEED);
    }
    //22.冷却水(冷却水不足)B32 GND
hu's avatar
hu committed
443
    if ((V_Speed == 0) && variable_1)
hu's avatar
hu committed
444 445 446 447 448 449 450 451 452 453 454 455
    {
        Popup_Request(POPUP5_LOW_COOLANT);
    }
    else
    {
        Popup_Delete(POPUP5_LOW_COOLANT);
    }

    //23.油压(机油)请在安全场所停车
    //发动机启动(350r/min)后、350r/min持续5秒以上时,A32信号(10ms周期监测),连续20次检出Lo时。
    variable_1 = Line_In_Get_Status(LINE_IN_ENG_OIL);
    //variable_2 = Get_ID_CF00400_Sig_Engine_speed();发动机转速 预留
hu's avatar
hu committed
456
    if (V_Speed && (E_Speed > 350) && variable_1)
hu's avatar
hu committed
457
    {
hu's avatar
hu committed
458
        Popup_Request(POPUP5_ENGINE_OIL_PRESSURE_SPEED);
hu's avatar
hu committed
459 460 461 462 463 464
    }
    else
    {
        Popup_Delete(POPUP5_ENGINE_OIL_PRESSURE_SPEED);
    }
    //24.油压异常
hu's avatar
hu committed
465
    if ((V_Speed == 0) && (E_Speed > 350) && variable_1)
hu's avatar
hu committed
466
    {
hu's avatar
hu committed
467
        Popup_Request(POPUP5_ENGINE_OIL_PRESSURE);
hu's avatar
hu committed
468 469 470 471 472
    }
    else
    {
        Popup_Delete(POPUP5_ENGINE_OIL_PRESSURE);
    }
hu's avatar
hu committed
473 474


hu's avatar
hu committed
475 476 477 478 479 480 481 482 483
    //25.仪表故障-请在安全场所停车      //没给条件
    //26.仪表故障-请与五十铃公司联系

    //27.通信系统-请在安全场所停车      //没给条件
    //28.通信系统-请与五十铃公司联系


    //29.车速限制-图1   ID:18FF2300 Byte:7 Bit:4,3   10(B)
    variable_1 = Get_ID_18FF2300_Sig_Engine_Derate();
hu's avatar
hu committed
484
    if (V_Speed && (variable_1 == 2))
hu's avatar
hu committed
485
    {
hu's avatar
hu committed
486
        Popup_Request(POPUP5_SPEED_LIMIT_SPEED);
hu's avatar
hu committed
487 488 489 490 491 492
    }
    else
    {
        Popup_Delete(POPUP5_SPEED_LIMIT_SPEED);
    }
    //30.车速限制-图2 ID:18FF2300 Byte:7 Bit:4,3   10(B)
hu's avatar
hu committed
493
    if ((V_Speed == 0) && (variable_1 == 2))
hu's avatar
hu committed
494 495 496 497 498 499 500 501
    {
        Popup_Request(POPUP5_SPEED_LIMIT);
    }
    else
    {
        Popup_Delete(POPUP5_SPEED_LIMIT);
    }
    //31.扭矩限制-图1 ID:18FF2300 Byte:7 Bit:4,3   01(B)
hu's avatar
hu committed
502
    if (V_Speed && (variable_1 == 1))
hu's avatar
hu committed
503 504 505 506 507 508 509 510
    {
        Popup_Request(POPUP5_TORQUE_REDUCTION_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_TORQUE_REDUCTION_SPEED);
    }
    //32.扭矩限制-图2 ID:18FF2300 Byte:7 Bit:4,3   01(B)
hu's avatar
hu committed
511
    if ((V_Speed == 0) && (variable_1 == 1))
hu's avatar
hu committed
512 513 514 515 516 517 518 519
    {
        Popup_Request(POPUP5_TORQUE_REDUCTION);
    }
    else
    {
        Popup_Delete(POPUP5_TORQUE_REDUCTION);
    }
    //33.扭矩限制、车速限制 交互 显示 ID:18FF2300 Byte:7 Bit:4,3   11(B)
hu's avatar
hu committed
520
    if (variable_1 == 3)
hu's avatar
hu committed
521 522 523 524 525 526 527 528 529 530 531
    {
        Popup_Request(POPUP5_SPEED_TORQUE);
    }
    else
    {
        Popup_Delete(POPUP5_SPEED_TORQUE);
    }


    //34.尿素品质异常-图1 ID:18FF2300 Byte:3 Bit:6,5  01(B)
    variable_1 = Get_ID_18FF2300_Sig_Amber3();
hu's avatar
hu committed
532
    if (V_Speed && (variable_1 == 1))
hu's avatar
hu committed
533 534 535 536 537 538 539 540
    {
        Popup_Request(POPUP5_INCORRECT_ADBLUE_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_INCORRECT_ADBLUE_SPEED);
    }
    //35.尿素品质异常-图2 ID:18FF2300 Byte:3 Bit:6,5  01(B)
hu's avatar
hu committed
541
    if ((V_Speed == 0) && (variable_1 == 1))
hu's avatar
hu committed
542 543 544 545 546 547 548 549
    {
        Popup_Request(POPUP5_INCORRECT_ADBLUE);
    }
    else
    {
        Popup_Delete(POPUP5_INCORRECT_ADBLUE);
    }

hu's avatar
hu committed
550
    //36.临界排放故障-图1 ID:18FF2300 Byte:7 Bit:6,5  01(B)
hu's avatar
hu committed
551 552
    variable_1 = Get_ID_18FF2300_Sig_EXH_System();

hu's avatar
hu committed
553
    if (V_Speed && (variable_1 == 1))
hu's avatar
hu committed
554 555 556 557 558 559 560 561
    {
        Popup_Request(POPUP5_CRITICAL_EMISSION_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_CRITICAL_EMISSION_SPEED);
    }

hu's avatar
hu committed
562 563
    //37.临界排放故障-图2 ID:18FF2300 Byte:7 Bit:6,5  01(B)
    if ((V_Speed == 0) && (variable_1 == 1))
hu's avatar
hu committed
564
    {
hu's avatar
hu committed
565
        Popup_Request(POPUP5_CRITICAL_EMISSION);
hu's avatar
hu committed
566 567 568 569 570 571 572 573
    }
    else
    {
        Popup_Delete(POPUP5_CRITICAL_EMISSION);
    }


    //38.AMT异常-图1 ID:18FF8503 Byte:1 Bit:4,3 01(B) LID $41 : 0x13
hu's avatar
hu committed
574 575
    variable_1 = Get_ID_18FF8503_Sig_Spanner_Warning();
    if ((EOL == 0x13) && (V_Speed) && (variable_1 == 1))
hu's avatar
hu committed
576 577 578 579 580 581 582 583 584
    {
        Popup_Request(POPUP5_AMT_SPANNER_WARNING_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_AMT_SPANNER_WARNING_SPEED);
    }

    //39.AMT异常-请重启发动机 ID:18FF8503 Byte:1 Bit:4,3 01(B) LID $41 : 0x13
hu's avatar
hu committed
585
    if ((EOL == 0x13) && (V_Speed == 0) && (variable_1 == 1))
hu's avatar
hu committed
586 587 588 589 590 591 592 593 594 595 596
    {
        Popup_Request(POPUP5_AMT_SPANNER_WARNING);
    }
    else
    {
        Popup_Delete(POPUP5_AMT_SPANNER_WARNING);
    }


    //40.AMT异常(气压低下)-图1 ID:18FF8503 Byte:2 Bit:6,5 01(B) LID $41 : 0x13
    variable_1 = Get_ID_18FF2300_Sig_Glow_Lamp();
hu's avatar
hu committed
597
    if ((EOL == 0x13) && (V_Speed) && (variable_1 == 1))
hu's avatar
hu committed
598 599 600 601 602 603 604 605 606
    {
        Popup_Request(POPUP5_AMT_LOW_AIR_WARNING_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_AMT_LOW_AIR_WARNING_SPEED);
    }

    //41.AMT异常(气压低下)-图2
hu's avatar
hu committed
607
    if ((EOL == 0x13) && (V_Speed == 0) && (variable_1 == 1))
hu's avatar
hu committed
608 609 610 611 612 613 614 615 616 617
    {
        Popup_Request(POPUP5_AMT_LOW_AIR_WARNING);
    }
    else
    {
        Popup_Delete(POPUP5_AMT_LOW_AIR_WARNING);
    }

    //42.低圧警報-轮胎漏气警告 ID:18011733  Byte:5 Bit:5 01(B) LID $3E : 0x01
    variable_1 = Get_ID_18011733_Sig_Fast_air_leakage_alarm();
hu's avatar
hu committed
618
    if ((EOL == 0x01) && (variable_1 == 1))
hu's avatar
hu committed
619
    {
hu's avatar
hu committed
620
        Popup_Request(POPUP5_LOW_PRESSURE_ALARM_SPEED);
hu's avatar
hu committed
621 622 623 624 625 626 627 628 629
    }
    else
    {
        Popup_Delete(POPUP5_LOW_PRESSURE_ALARM_SPEED);
    }
    //43.低圧警報 - 若报警图一样,同42.否则此处增加43报警逻辑

    //44.尿素补给-补充尿素溶液-图1 ID:18FF2300 Byte:3 Bit:4,3 01(B)
    variable_1 = Get_ID_18FF2300_Sig_Amber2();
hu's avatar
hu committed
630
    if ((V_Speed) && (variable_1 == 1))
hu's avatar
hu committed
631 632 633 634 635 636 637 638 639
    {
        Popup_Request(POPUP5_APP_ADBLUE_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_APP_ADBLUE_SPEED);
    }

    //45.尿素补给-补充尿素溶液-图2 ID:18FF2300 Byte:3 Bit:4,3 01(B)
hu's avatar
hu committed
640
    if ((V_Speed == 0) && (variable_1 == 1))
hu's avatar
hu committed
641 642 643 644 645 646 647 648 649
    {
        Popup_Request(POPUP5_APP_ADBLUE);
    }
    else
    {
        Popup_Delete(POPUP5_APP_ADBLUE);
    }

    //46.尿素余量少-有车速-图1 ID:18FF2300 Byte:3 Bit:4,3 10(B)
hu's avatar
hu committed
650
    if ((V_Speed) && (variable_1 == 2))
hu's avatar
hu committed
651 652 653 654 655 656 657 658 659
    {
        Popup_Request(POPUP5_ADBLUE_LEVEL_LOW_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_ADBLUE_LEVEL_LOW_SPEED);
    }

    //47.尿素余量少-无车速-图2 ID:18FF2300 Byte:3 Bit:4,3 10(B)
hu's avatar
hu committed
660
    if ((V_Speed == 0) && (variable_1 == 2))
hu's avatar
hu committed
661 662 663 664 665 666 667 668 669 670
    {
        Popup_Request(POPUP5_ADBLUE_LEVEL_LOW);
    }
    else
    {
        Popup_Delete(POPUP5_ADBLUE_LEVEL_LOW);
    }

    //48. 低圧警報(低下)ID:18011733  Byte:5 Bit:8 01(B) LID $3E : 0x01
    variable_1 = Get_ID_18011733_Sig_Low_Presure_Alarm();
hu's avatar
hu committed
671
    if ((EOL == 0x01) && (variable_1 == 1))
hu's avatar
hu committed
672
    {
hu's avatar
hu committed
673
        Popup_Request(POPUP5_LOW_FAILURE_SPEED);
hu's avatar
hu committed
674 675 676 677 678 679 680 681 682 683
    }
    else
    {
        Popup_Delete(POPUP5_LOW_FAILURE_SPEED);
    }
    //49.低圧警報(低下) 同//48


    //50.摄像头有污染-图1 ID:18FE5BE8 Byte7  Bit5-8 0010(B) 0011(B) LID $27: 0x01
    variable_1 = Get_ID_18FE5BE8_Sig_Camera_Status();
hu's avatar
hu committed
684
    if (V_Speed)
hu's avatar
hu committed
685
    {
hu's avatar
hu committed
686
        if ((EOL == 0x01) && (V_Speed) && ((variable_1 == 2) || (variable_2 == 3)))
hu's avatar
hu committed
687 688 689 690 691 692 693 694 695
        {
            Popup_Request(POPUP5_CAMERA_POLLUTION_SPEED);
        }
        else
        {
            Popup_Delete(POPUP5_CAMERA_POLLUTION_SPEED);
        }
    }
    //51.摄像头有污染-请与五十铃公司联系 ID:18FE5BE8 Byte7  Bit5-8 0010(B) 0011(B) LID $27: 0x01
hu's avatar
hu committed
696
    if ((EOL == 0x01) && (V_Speed == 0x00) && ((variable_1 == 2) || (variable_2 == 3)))
hu's avatar
hu committed
697 698 699 700 701 702 703 704 705 706
    {
        Popup_Request(POPUP5_CAMERA_POLLUTION);
    }
    else
    {
        Popup_Delete(POPUP5_CAMERA_POLLUTION);
    }

    //52.尿素喷射异常(停止)-图1 ID:18FF2300 Byte:3 Bit:2,1 01(B)
    variable_1 = Get_ID_18FF2300_Sig_Amber1();
hu's avatar
hu committed
707
    if ((V_Speed) && (variable_1 == 1))
hu's avatar
hu committed
708 709 710 711 712 713 714 715 716
    {
        Popup_Request(POPUP5_AdBlue_LEVEL_LOW_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_AdBlue_LEVEL_LOW_SPEED);
    }

    //53.尿素喷射异常(停止)-图2 ID:18FF2300 Byte:3 Bit:2,1 01(B)
hu's avatar
hu committed
717
    if ((V_Speed == 0) && (variable_1 == 1))
hu's avatar
hu committed
718 719 720 721 722 723 724 725 726
    {
        Popup_Request(POPUP5_AdBlue_LEVEL_LOW);
    }
    else
    {
        Popup_Delete(POPUP5_AdBlue_LEVEL_LOW);
    }

    //54.尿素喷射异常(消耗量)-图1  ID:18FF2300 Byte:3 Bit:2,1 10(B)
hu's avatar
hu committed
727
    if ((V_Speed) && (variable_1 == 2))
hu's avatar
hu committed
728 729 730 731 732 733 734 735 736
    {
        Popup_Request(POPUP5_AdBlue_INJ_SYSTEM_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_AdBlue_INJ_SYSTEM_SPEED);
    }

    //55.尿素喷射异常(消耗量)-图2 ID:18FF2300 Byte:3 Bit:2,1 10(B)
hu's avatar
hu committed
737
    if ((V_Speed == 0) && (variable_1 == 2))
hu's avatar
hu committed
738 739 740 741 742 743 744 745 746 747
    {
        Popup_Request(POPUP5_AdBlue_INJ_SYSTEM);
    }
    else
    {
        Popup_Delete(POPUP5_AdBlue_INJ_SYSTEM);
    }

    //56.高圧警報-轮胎高压警告 ID:18011733  Byte:5 Bit:7  01(B) LID $3E : 0x01
    variable_1 = Get_ID_18011733_Sig_High_Presure_Alarm();
hu's avatar
hu committed
748
    if ((EOL == 0x01) && (variable_1 == 1))
hu's avatar
hu committed
749 750 751 752 753 754 755 756 757 758
    {
        Popup_Request(POPUP5_TPMS_HIGH_AIR);
    }
    else
    {
        Popup_Delete(POPUP5_TPMS_HIGH_AIR);
    }

    //57.高温警報-轮胎高温警告 ID:18011733  Byte:5 Bit:6  01(B) LID $3E : 0x01
    variable_1 = Get_ID_18011733_Sig_High_Temperature_Alarm();
hu's avatar
hu committed
759
    if ((EOL == 0x01) && (variable_1  == 1))
hu's avatar
hu committed
760
    {
hu's avatar
hu committed
761
        Popup_Request(POPUP5_TPMS_HIGH_TEMP);
hu's avatar
hu committed
762 763 764 765 766 767 768 769
    }
    else
    {
        Popup_Delete(POPUP5_TPMS_HIGH_TEMP);
    }

    //58.尿素喷射异常(停止、消耗量)交互显示----尿素喷射系统异常 ID:18FF2300 Byte:3 Bit:2,1 11(B)
    variable_1 = Get_ID_18FF2300_Sig_Amber1();
hu's avatar
hu committed
770
    if (variable_1 == 3)
hu's avatar
hu committed
771 772 773 774 775 776 777 778 779 780 781
    {
        Popup_Request(POPUP5_AdBlue_DOS_MALFUNC);
    }
    else
    {
        Popup_Delete(POPUP5_AdBlue_DOS_MALFUNC);
    }

    //59.DPD手动再生要求1-DPD需要再生 18FD7C00 Byte:1 Bit:3-1  001:On – solid
    variable_1 = Get_ID_18FD7C00_Sig_DPF_Lamp_Status_Amber();

hu's avatar
hu committed
782
    if ((V_Speed) && (variable_1 == 1))
hu's avatar
hu committed
783 784 785 786 787 788 789 790 791
    {
        Popup_Request(POPUP5_PUSH_DPD_SWITCH1_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_PUSH_DPD_SWITCH1_SPEED);
    }

    //60.DPD手动再生要求1-请按下DPD开关 18FD7C00 Byte:1 Bit:3-1   001:On – solid
hu's avatar
hu committed
792
    if ((V_Speed == 0) && (variable_1 == 1))
hu's avatar
hu committed
793 794 795 796 797 798 799 800 801
    {
        Popup_Request(POPUP5_PUSH_DPD_SWITCH1);
    }
    else
    {
        Popup_Delete(POPUP5_PUSH_DPD_SWITCH1);
    }

    //61.DPD手动再生要求2-DPD需要再生 18FD7C00 Byte:1 Bit:3-1     100:On – fast blink (1 HZ)
hu's avatar
hu committed
802
    if ((V_Speed) && (variable_1 == 4))
hu's avatar
hu committed
803 804 805 806 807 808 809 810 811
    {
        Popup_Request(POPUP5_PUSH_DPD_SWITCH2_SPEED);
    }
    else
    {
        Popup_Delete(POPUP5_PUSH_DPD_SWITCH2_SPEED);
    }

    //62.DPD手动再生要求2-请按下DPD开关 18FD7C00 Byte:1 Bit:3-1     100:On – fast blink (1 HZ)
hu's avatar
hu committed
812
    if ((V_Speed == 0) && (variable_1 == 4))
hu's avatar
hu committed
813 814 815 816 817 818 819 820 821 822
    {
        Popup_Request(POPUP5_PUSH_DPD_SWITCH2);
    }
    else
    {
        Popup_Delete(POPUP5_PUSH_DPD_SWITCH2);
    }

    //63.TPMS故障-轮胎监控失败  ID:18011733  Byte:6 Bit:ALL 0111(B) or 1000(B) or 1001(B)
    variable_1 = Get_ID_18011733_Sig_Sensor_fault_information();
hu's avatar
hu committed
823
    if ((variable_1 == 7) || (variable_1 == 8) || (variable_1 == 9) )
hu's avatar
hu committed
824
    {
hu's avatar
hu committed
825
        Popup_Request(POPUP5_TPMS_FAILURE);
hu's avatar
hu committed
826 827 828 829 830 831 832 833 834
    }
    else
    {
        Popup_Delete(POPUP5_TPMS_FAILURE);
    }


    //64.TPMS電池低下-轮胎监控传感器电压下降  ID:18011733  Byte:5 Bit:4  01(B)  LID $3E : 0x01
    variable_1 = Get_ID_18011733_Sig_Low_Voltage_Alarm();
hu's avatar
hu committed
835
    if ((EOL == 0x01) && (variable_1  == 1))
hu's avatar
hu committed
836
    {
hu's avatar
hu committed
837
        Popup_Request(POPUP5_TPMS_MONITOR_DROP);
hu's avatar
hu committed
838 839 840 841 842 843 844 845 846
    }
    else
    {
        Popup_Delete(POPUP5_TPMS_MONITOR_DROP);
    }
    //65.DPD手动再生中            //没有执行条件

    //66.遥控车辆高度调整中(无车速) B30 28V
    variable_1 = Line_In_Get_Status(LINE_IN_AIR_SUS);//获取硬线结果 B30
hu's avatar
hu committed
847
    if ((V_Speed == 0) && (variable_1 == 1))
hu's avatar
hu committed
848 849 850 851 852 853 854 855 856 857 858 859
    {
        Popup_Request(POPUP6_HEIGHT_CONTROL);
    }
    else
    {
        Popup_Delete(POPUP6_HEIGHT_CONTROL);
    }

    //67.PTO(停车中)(无车速)
    //ID:18FED900  Byte:2 Bit:8,7  01(B)   OR  B01 28V
    variable_1 = Get_ID_18FED900_Sig_PTO_SW();
    variable_2 = Line_In_Get_Status(LINE_IN_PTO);
hu's avatar
hu committed
860 861

    if ((V_Speed == 0) || (variable_1 == 1) || ( variable_2 == 1))
hu's avatar
hu committed
862 863 864 865 866 867 868 869 870 871 872 873
    {
        Popup_Request(POPUP6_PTO_STOP);
    }
    else
    {
        Popup_Delete(POPUP6_PTO_STOP);
    }

    //68.充电异常-请在安全的场所停车
    //エンジン始動(350r/min)後、350r/minが5秒以上継続している場合、A34信号(10ms周期で監視)で。
    //发动机启动(350r/min)后、350r/min持续5秒以上时,A34信号(10ms周期监测),
    //检出(Lo 或 连续500次以上电压值<21V)时。
hu's avatar
hu committed
874 875 876
    variable_1                  = Line_In_Get_Status(LINE_IN_CHARGE);                //A34

    if ((V_Speed) && (variable_1 == 1) && (E_Speed > 350))
hu's avatar
hu committed
877 878 879 880 881 882 883 884 885
    {
        Popup_Request(POPUP7_CHARGE_ABNORMAL_SPEED);
    }
    else
    {
        Popup_Delete(POPUP7_CHARGE_ABNORMAL_SPEED);
    }

    //69.充电异常-请与五十铃公司联系
hu's avatar
hu committed
886
    if ((V_Speed == 0) && (variable_1 == 1) && (E_Speed > 350))
hu's avatar
hu committed
887
    {
hu's avatar
hu committed
888
        Popup_Request(POPUP7_CHARGE_ABNORMAL);
hu's avatar
hu committed
889 890 891 892 893 894
    }
    else
    {
        Popup_Delete(POPUP7_CHARGE_ABNORMAL);
    }

hu's avatar
hu committed
895
    //70.AMT異常-AMT异常  ID:18FF8503 Bite:1 Bit:2,1   LID $41 : 0x13
hu's avatar
hu committed
896
    variable_1 = Get_ID_18FF8503_Sig_Stop_Warning();
hu's avatar
hu committed
897 898

    if ((EOL == 0x13) && (V_Speed) && (variable_1))
hu's avatar
hu committed
899 900 901 902 903 904 905 906
    {
        Popup_Request(POPUP7_AMT_ERROR_SPEED);
    }
    else
    {
        Popup_Delete(POPUP7_AMT_ERROR_SPEED);
    }

hu's avatar
hu committed
907 908
    //71.AMT異常-请联系经销商
    if ((EOL == 0x13) && (V_Speed == 0) && (variable_1))
hu's avatar
hu committed
909 910 911 912 913 914 915 916 917 918 919
    {
        Popup_Request(POPUP7_AMT_ERROR);
    }
    else
    {
        Popup_Delete(POPUP7_AMT_ERROR);
    }

    //72.补充燃料-油箱单位  LID $43 : 0x82
    //显示条件   : A11的13秒平均値≧128Ω
    //不显示条件 : A11的13秒平均値< 128Ω
hu's avatar
hu committed
920 921

    if ((EOL == 0x82) && (Fuel_Get_Res() > 128))
hu's avatar
hu committed
922
    {
hu's avatar
hu committed
923
        Popup_Request(POPUP8_REFUEL);
hu's avatar
hu committed
924 925 926 927 928 929 930 931
    }
    else
    {
        Popup_Delete(POPUP8_REFUEL);
    }

    //73.AMT过热-离合器过载 ID:18FF8503 Bite:2 Bit:4,3  001(B)  LID $41 : 0x13
    variable_1 = Get_ID_18FF8503_Sig_Clutch_Overload_warning();
hu's avatar
hu committed
932
    if ((EOL == 0x13) && (V_Speed) && (variable_1 == 1))
hu's avatar
hu committed
933 934 935 936 937 938 939 940 941
    {
        Popup_Request(POPUP8_ATM_CLUCH_OVERHEATING_SPEED);
    }
    else
    {
        Popup_Delete(POPUP8_ATM_CLUCH_OVERHEATING_SPEED);
    }

    //74.AMT过热-选择合适的档位 ID:18FF8503 Bite:2 Bit:4,3  001(B)  LID $41 : 0x13
hu's avatar
hu committed
942
    if ((EOL == 0x13) && (V_Speed == 0) && (variable_1 == 1))
hu's avatar
hu committed
943 944 945 946 947 948 949 950 951 952
    {
        Popup_Request(POPUP8_ATM_CLUCH_OVERHEATING);
    }
    else
    {
        Popup_Delete(POPUP8_ATM_CLUCH_OVERHEATING);
    }

    //75.AMT磨耗-离合器磨损 ID:18FF8503 Bite:2 Bit:2,1  001(B)  LID $41 : 0x13
    variable_1 = Get_ID_18FF8503_Sig_Manouvering_mode();
hu's avatar
hu committed
953
    if ((EOL == 0x13) && (variable_1 == 1))
hu's avatar
hu committed
954
    {
hu's avatar
hu committed
955
        Popup_Request(POPUP1_BRAKE_BRAKE);
hu's avatar
hu committed
956 957 958 959 960 961 962 963 964 965
    }
    else
    {
        Popup_Delete(POPUP1_BRAKE_BRAKE);
    }


    //76.低电压报警
    //显示条件:发动机启动(350r/min)后,7秒检测到23.5V时
    //显示消失条件:10秒检测到25V以上时
hu's avatar
hu committed
966
    if ( E_Speed > 350) //转速350R/min
hu's avatar
hu committed
967
    {
hu's avatar
hu committed
968
        if ( KL30_Volt < 2350)   //23.5V
hu's avatar
hu committed
969 970 971
        {
            Popup_Request(POPUP8_LOW_VOLTAGE_SPEED);
        }
hu's avatar
hu committed
972
        else if (KL30_Volt > 2500)
hu's avatar
hu committed
973 974 975 976 977 978 979 980 981 982 983 984
        {
            Popup_Delete(POPUP8_LOW_VOLTAGE_SPEED);
        }
    }
    else
    {
        Popup_Delete(POPUP8_LOW_VOLTAGE_SPEED);
    }

    //77.过电压报警
    //显示条件:发动机启动(350r/min)后,7秒检测到30.4V以上时
    //显示消失条件:10秒检测到29.4V以下时
hu's avatar
hu committed
985
    if ( E_Speed > 350) //转速350R/min
hu's avatar
hu committed
986
    {
hu's avatar
hu committed
987
        if (KL30_Volt > 3044)   //30.44V
hu's avatar
hu committed
988 989 990
        {
            Popup_Request(POPUP8_OVERVOLTAGE);
        }
hu's avatar
hu committed
991
        else if (KL30_Volt < 2940)
hu's avatar
hu committed
992 993 994 995 996 997 998 999 1000
        {
            Popup_Delete(POPUP8_OVERVOLTAGE);
        }
    }
    else
    {
        Popup_Delete(POPUP8_OVERVOLTAGE);
    }

hu's avatar
hu committed
1001
    //78.DPD自动再生-DPD自动再生中  ID:18FED900 (AUXIO)  Byte:8  bit:5,4  01(B)  Engine Speed : 350rpm以上
hu's avatar
hu committed
1002 1003
    variable_1  = Get_ID_18FED900_Sig_DPF_Regeneration_Status();

hu's avatar
hu committed
1004
    if ((V_Speed) && (E_Speed >= 350) && (variable_1 == 1))
hu's avatar
hu committed
1005
    {
hu's avatar
hu committed
1006
        Popup_Request(POPUP8_DPD_AUTO_SPEED);
hu's avatar
hu committed
1007 1008 1009 1010 1011
    }
    else
    {
        Popup_Delete(POPUP8_DPD_AUTO_SPEED);
    }
hu's avatar
hu committed
1012 1013
    //79.DPD自动再生-再生将自动完成,不需要操作开关
    if ((V_Speed == 0) && (E_Speed >= 350) && (variable_1 == 1)) //转速350R/min
hu's avatar
hu committed
1014 1015 1016 1017 1018 1019 1020 1021
    {
        Popup_Request(POPUP8_DPD_AUTO);
    }
    else
    {
        Popup_Delete(POPUP8_DPD_AUTO);
    }

hu's avatar
hu committed
1022

hu's avatar
hu committed
1023 1024 1025
    //80.气压过低-气压过低请注意  A28 GND
    //OR条件
    //与LED等同时 任一压力传感器为539kPa(1.89V)以下时
hu's avatar
hu committed
1026 1027
    variable_1 = Line_In_Get_Status(LINE_IN_BRAKE_AIR_EBS);
    if ((V_Speed) && (variable_1 == 0) )
hu's avatar
hu committed
1028 1029 1030 1031 1032 1033 1034 1035 1036
    {
        Popup_Request(POPUP9_AIR_PRESSURE_SPEED);
    }
    else
    {
        Popup_Delete(POPUP9_AIR_PRESSURE_SPEED);
    }

    //81.气压过低-请冲入空气
hu's avatar
hu committed
1037
    if ((V_Speed == 0) && (variable_1 == 0) )
hu's avatar
hu committed
1038 1039 1040 1041 1042 1043 1044 1045 1046 1047
    {
        Popup_Request(POPUP9_AIR_PRESSURE);
    }
    else
    {
        Popup_Delete(POPUP9_AIR_PRESSURE);
    }

    //82.EBS故障(红)-请在安全的场所停车 ID:18F0010B (EBC1)  Byte:6 Bit:3-4  01(B)  LID $21: 0x01
    variable_1 = Get_ID_18F0010B_Sig_EBS_Red_Warning_Lamp_State();
hu's avatar
hu committed
1048 1049
    if ((EOL == 0x01) && (V_Speed ) && (variable_1 == 1))
    {
hu's avatar
hu committed
1050 1051 1052 1053 1054 1055 1056
        Popup_Request(POPUP9_EBS_ERROR_SPEED);
    }
    else
    {
        Popup_Delete(POPUP9_EBS_ERROR_SPEED);
    }
    //83.EBS故障(红)-请与五十铃公司联系
hu's avatar
hu committed
1057
    if ((EOL == 0x01) && (V_Speed == 0 ) && (variable_1 == 1))
hu's avatar
hu committed
1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072
    {
        Popup_Request(POPUP9_EBS_ERROR);
    }
    else
    {
        Popup_Delete(POPUP9_EBS_ERROR);
    }

    //84.省油耗建议-急加速
    //85.省油耗建议-急减速
    //86.省油耗建议-请降低发动机转速
    //87.省油耗建议-请降低速度

    //88.发动机机油&滤清器  ID:18FF3018 Byte:1 Bit:8,7   01(B) 10(B)
    variable_1 = Get_ID_18FF3018_Sig_Engine_Oil_Warnning();
hu's avatar
hu committed
1073
    if (variable_1 == 1 || variable_1 == 2)
hu's avatar
hu committed
1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187
    {
        Popup_Request(POPUP11_ENGINE_OIL_FILTER_ERROR);
    }
    else
    {
        Popup_Delete(POPUP11_ENGINE_OIL_FILTER_ERROR);
    }
    //89.燃油滤清器
    //依据警报阈值、前次重置时及现在的ODO值,剩余距离:1000km时,显示提前警报。
    //另外,剩余距离:负值时,再次显示本警报。

    //90.变速箱油


    //91.差速器油


    //92.顺畅系统离合器油


    //93.动力转向液


    //94.更换轮胎・轮胎位置


}



void Popups_Sound_Playing(uint8_t PopupSnd)
{
    uint8_t ReqCode = 0u;

    ReqCode = Popup_Get_Current_Sound_Req_Code( );

    switch ( PopupSnd )
    {
    /*
    case SND_RADAR                :
        if ( RADAR_SOUND == RADAR_SND_2Hz )
        {
            Sound_Delete ( SND_RADAR_4Hz );
            Sound_Delete ( SND_RADAR_CONTINUOUS );
            Sound_Request ( SND_RADAR_2Hz, ReqCode );
        }
        else if ( RADAR_SOUND == RADAR_SND_4Hz )
        {
            Sound_Delete ( SND_RADAR_2Hz );
            Sound_Delete ( SND_RADAR_CONTINUOUS );
            Sound_Request ( SND_RADAR_4Hz, ReqCode );
        }
        else if ( RADAR_SOUND == RADAR_SND_CONTINUOUS )
        {
            Sound_Delete ( SND_RADAR_2Hz );
            Sound_Delete ( SND_RADAR_4Hz );
            Sound_Request ( SND_RADAR_CONTINUOUS, ReqCode );
        }
        else
        {
            Sound_Delete ( SND_RADAR_2Hz );
            Sound_Delete ( SND_RADAR_4Hz );
            Sound_Delete ( SND_RADAR_CONTINUOUS );
        }
        break;

    case SND_FASTEN_SEATBELT      :
        if ( PopupSeatBeltDrReq == 1 )
            Sound_Request ( SND_FASTEN_SEATBELT_DR_Level_1, ReqCode );
        else if ( PopupSeatBeltDrReq == 2 )
            Sound_Request ( SND_FASTEN_SEATBELT_DR_Level_2, ReqCode );
        else if ( PopupSeatBeltDrReq == 3 )
            Sound_Request ( SND_FASTEN_SEATBELT_DR_Level_3, ReqCode );
        else
        {
            Sound_Delete ( SND_FASTEN_SEATBELT_DR_Level_1 );
            Sound_Delete ( SND_FASTEN_SEATBELT_DR_Level_2 );
            Sound_Delete ( SND_FASTEN_SEATBELT_DR_Level_3 );
        }

        if ( PopupSeatBeltPaReq == 1 )
            Sound_Request ( SND_FASTEN_SEATBELT_PA_Level_1, ReqCode );
        else if ( PopupSeatBeltPaReq == 2 )
            Sound_Request ( SND_FASTEN_SEATBELT_PA_Level_2, ReqCode );
        else if ( PopupSeatBeltPaReq == 3 )
            Sound_Request ( SND_FASTEN_SEATBELT_PA_Level_3, ReqCode );
        else
        {
            Sound_Delete ( SND_FASTEN_SEATBELT_PA_Level_1 );
            Sound_Delete ( SND_FASTEN_SEATBELT_PA_Level_2 );
            Sound_Delete ( SND_FASTEN_SEATBELT_PA_Level_3 );
        }
        break;

    case SND_DOOR_OPEN_HI_SPEED   :
    case SND_DOOR_OPEN_LOW_SPEED  :
        if ( ReqCode )
        {
            if ( WARNING_DOOR_OPEN_SND_EN == 0 )
                ReqCode = 0;
            Sound_Request ( PopupSnd, ReqCode );
        }
        else
            Sound_Delete ( PopupSnd );
        break;
    */
    default:
        if ( ReqCode )
            Sound_Request(PopupSnd, ReqCode);
        else
            Sound_Delete(PopupSnd);
        break;
    }
}