You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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(){
The text was updated successfully, but these errors were encountered: