| | |
| | | type = rtkConfigUpdtea.getInt("type"); |
| | | enter_status = rtkConfigUpdtea.getInt("enter"); |
| | | String itemstr=ExamPlatformData.getInstance().getItemStatusStr(type); |
| | | ExamPlatformData.getInstance().getTTS().speak(itemstr+(enter_status==Constant.EXIT_CURRENT_ITEM?"结束":"开始")); |
| | | if (ExamPlatformData.getInstance().getTrainingMode()== ExamPlatformData.TRAINING_MODE){ |
| | | |
| | | ExamPlatformData.getInstance().getTTS().speak(itemstr+(enter_status==Constant.EXIT_CURRENT_ITEM?"结束":"开始")); |
| | | }else{ |
| | | if (enter_status!=Constant.EXIT_CURRENT_ITEM){ |
| | | ExamPlatformData.getInstance().getTTS().speak(itemstr+"开始"); |
| | | } |
| | | |
| | | } |
| | | } catch (JSONException e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | if (ExamPlatformData.getInstance().getExamplatformStatus()==ExamPlatformData.DEV_LOGIN){ |
| | | try { |
| | | JSONObject jsSpeed = new JSONObject(json); |
| | | double latitude = jsSpeed.getDouble("latitude"); |
| | | double longitude = jsSpeed.getDouble("longitude"); |
| | | double altitude = jsSpeed.getDouble("altitude"); |
| | | double speed = jsSpeed.getDouble("speed"); |
| | | int qf = jsSpeed.getInt("qf"); |
| | | double track_ture = jsSpeed.getDouble("track_ture"); |
| | | String utc = jsSpeed.getString("utc"); |
| | | CEventCenter.dispatchEvent(Constant.BIND_RTK_SPEED_TOPIC,cmd,0,speed); |
| | | utc = utc.replace(".",""); |
| | | JKMessage0206 jkMessage0206 = new JKMessage0206(); |
| | | jkMessage0206.alert = 0; |
| | | jkMessage0206.status = 0; |
| | | jkMessage0206.jd = longitude; |
| | | jkMessage0206.wd = latitude; |
| | | jkMessage0206.gaoCheng = (int)altitude; |
| | | jkMessage0206.speed = speed; |
| | | jkMessage0206.fangXiang = (int)track_ture; |
| | | jkMessage0206.rf = qf; |
| | | if (utc.length()>16){ |
| | | utc = utc.substring(0,16); |
| | | } |
| | | jkMessage0206.timeBCD = utc; |
| | | |
| | | jkMessage0206.json =json; |
| | | jkMessage0206.length = jkMessage0206.json.length(); |
| | | // MyLog.i("地理坐标长度="+jkMessage0206.length); |
| | | AttachInfo attachInfo = new AttachInfo(); |
| | | attachInfo.attach_message_id = Integer.parseInt(String.valueOf(0x40)); |
| | | attachInfo.attach_message_length = 4; |