| | |
| | | ", pitch=" + pitch + |
| | | ", roll=" + roll + |
| | | ", sat_num=" + sat_num + |
| | | ", sat_num=" + rtcm_length + |
| | | ", latitude=" + latitude + |
| | | ", longitude=" + longitude + |
| | | ", altitude=" + altitude + |
| | |
| | | public void onCEvent(String topic, int msgCode, int resultCode, Object obj) { |
| | | if (msgCode == Constant.RTK_INFO){ |
| | | String str = (String)obj; |
| | | |
| | | if (!str.equalsIgnoreCase(lastRtkinfoStr)){ |
| | | RTKInfoBean rtkInfoBean = gson.fromJson(str, RTKInfoBean.class); |
| | | |
| | | if (rtkInfoBean != null){ |
| | | Field[] fields = rtkInfoBean.getClass().getDeclaredFields(); |
| | | |
| | | datas.clear(); |
| | | for (int i = 0; i < fields.length; i++) { |
| | | fields[i].setAccessible(true); |