msdk 使用setGPSDataCallback()连接无人机后无gps数据返回
0
remoteController.setGPSDataCallback(new GPSData.Callback() {
@Override
public void onUpdate(GPSData gpsData) {
GPSData.GPSLocation location = gpsData.getLocation();
showToast(location.getLatitude()+","+location.getLongitude());
int satelliteCount = gpsData.getSatelliteCount();
showToast("卫星数:"+satelliteCount);
}
});
|
|
|
|