| | |
| | | double longitude = jsSpeed.getDouble("longitude"); |
| | | double altitude = jsSpeed.getDouble("altitude"); |
| | | double speed = jsSpeed.getDouble("speed"); |
| | | Log.i(TAG, "RTK info speed: "+speed); |
| | | int qf = jsSpeed.getInt("qf"); |
| | | double track_ture = jsSpeed.getDouble("track_ture"); |
| | | String utc = jsSpeed.getString("utc"); |
| | |
| | | AttachInfo attachInfo = new AttachInfo(); |
| | | attachInfo.attach_message_id = Integer.parseInt(String.valueOf(0x40)); |
| | | attachInfo.attach_message_length = 4; |
| | | Log.i(TAG, "attachInfo.attach_message_id ="+attachInfo.attach_message_id ); |
| | | if (attachInfo.attach_message_id == 0x41){ |
| | | Log.i(TAG, "onClick: 41"); |
| | | attachInfo.attach_data="00000000"; |
| | | }else{ |
| | | |
| | |
| | | } |
| | | |
| | | jkMessage0206.attachInfo = attachInfo; |
| | | Log.i(TAG, "位置上报="+jkMessage0206.toString()); |
| | | MessageProcessor.getInstance().sendMessage(jkMessage0206); |
| | | |
| | | } catch (JSONException e) { |