I am trying to dynamically give a GPS coordinate to the FollowMeMission.
When I called startSimpleFollowMe its giving me an error "The aircraft is not in the air.".
Here are the two methods which I used for a
public void updateSimpleFollowMe(){
if(fmmo == null){
fmmo = MissionControl.getInstance().getFollowMeMissionOperator();
}
final FollowMeMissionOperator followMeMissionOperator = fmmo;
if(followMeMissionOperator.getCurrentState().equals(FollowMeMissionState.EXECUTING)) {
followMeMissionOperator.updateFollowingTarget(new LocationCoordinate2D(homeLatitude + 100 * GeneralUtils.ONE_METER_OFFSET, homeLongitude),
new CommonCallbacks.CompletionCallback() {
@Override
public void onResult(DJIError error) {
if (error != null) {
setRunningResultToText(followMeMissionOperator.getCurrentState().getName().toString() + " " + error.getDescription());
} else {
setRunningResultToText("Mission Update Successfully");
}
}
});
}
}
public void startSimpleFollowMe(){
When I called startSimpleFollowMe its giving me an error "The aircraft is not in the air.". Here are the two methods which I used for a public void updateSimpleFollowMe(){ if(fmmo == null){ fmmo = MissionControl.getInstance().getFollowMeMissionOperator(); } final FollowMeMissionOperator followMeMissionOperator = fmmo; if(followMeMissionOperator.getCurrentState().equals(FollowMeMissionState.EXECUTING)) { followMeMissionOperator.updateFollowingTarget(new LocationCoordinate2D(homeLatitude + 100 * GeneralUtils.ONE_METER_OFFSET, homeLongitude), new CommonCallbacks.CompletionCallback() { @Override public void onResult(DJIError error) { if (error != null) { setRunningResultToText(followMeMissionOperator.getCurrentState().getName().toString() + " " + error.getDescription()); } else { setRunningResultToText("Mission Update Successfully"); } } }); } } public void startSimpleFollowMe(){