为什么MSDK(android)获取的接口数据全是空值?
CompletedFlightControllerState fcs = new FlightControllerState();
JSONObject jo = new JSONObject();
jo.put("系统时间", System.currentTimeMillis());
try {
jo.put("是否启动", fcs.areMotorsOn());
jo.put("是否飞行", fcs.isFlying());
jo.put("无人机剩余电量", fcs.getBatteryThresholdBehavior());
jo.put("累计启动时间", fcs.getFlightTimeInSeconds());
jo.put("GPS卫星返回计数", fcs.getSatelliteCount());
jo.put("GPS信号强度", fcs.getGPSSignalLevel());
jo.put("IMU是否预热", fcs.isIMUPreheating());
jo.put("无人机当前方向", fcs.getOrientationMode());
} catch (Exception e) {
e.printStackTrace();
}
Please sign in to leave a comment.
Comments
2 comments