| | |
| | | private HouseView houseView; |
| | | private List<ExamStatus> examStatusList = new ArrayList<>(); |
| | | private List<String> item_conents = new ArrayList<>();//坡道定点停车和起步 |
| | | private int changKaoCount=0; |
| | | |
| | | private int item_id;//扣分分数总和 |
| | | private ExamStatusViewModel examStatusViewModel; |
| | |
| | | MyLog.i("路考当前得分:"+currTotalScore); |
| | | if (currTotalScore < Constant.PASSING_SCORE){ |
| | | MyLog.i("路考低于80,不合格"+currTotalScore); |
| | | // ExamPlatformData.getInstance().getTTS().speak("考试不合格"); |
| | | // stopExam(); |
| | | ExamPlatformData.getInstance().getTTS().speak("考试不合格"); |
| | | stopExam(); |
| | | } |
| | | MyLog.i("路考监测到有失败项目加入,通知UI更新颜色"); |
| | | mHandler.obtainMessage(ADD_DATA).sendToTarget(); |
| | |
| | | MyLog.i("当前得分:"+currTotalScore); |
| | | if (currTotalScore < Constant.PASSING_SCORE){ |
| | | MyLog.i("场考低于80,不合格"+currTotalScore); |
| | | // ExamPlatformData.getInstance().getTTS().speak("考试不合格"); |
| | | // stopExam(); |
| | | ExamPlatformData.getInstance().getTTS().speak("考试不合格"); |
| | | stopExam(); |
| | | } |
| | | MyLog.i("场考监测到有失败项目加入,通知UI更新颜色"); |
| | | mHandler.obtainMessage(ADD_DATA).sendToTarget(); |
| | |
| | | Log.i(TAG, "ExamStatus onChanged: "); |
| | | if (examStatus!=null && examStatus.size()>0){ |
| | | MyLog.i(TAG,"考试状态更新"); |
| | | if (ExamPlatformData.getInstance().getExamType()<=ExamPlatformData.EXAM_TYPE_ChangKAO){ |
| | | for (ExamStatus e:examStatus){ |
| | | if (changKaoCount>=5){ |
| | | MyLog.i("正常的考试结束,五个项目全考完"); |
| | | changKaoCount=0; |
| | | } |
| | | if(e.getEnter()== safeluck.drive.evaluation.DB.Constant.FINISH_ITEM){ |
| | | changKaoCount++; |
| | | } |
| | | } |
| | | } |
| | | showChangKaoOrLukao(examStatus.get(0).getStartExam()); |
| | | examStatusList.clear(); |
| | | examStatusList.addAll(examStatus); |