activate
Activates this piloting interface and starts executing the uploaded flight plan.
The interface should be idle for this method to have effect. If successful, the currently active piloting interface (if any) is deactivated and this one is activated.
The flight plan is resumed if it's currently paused and the restart
parameter is false
; otherwise the flight plan is started from the beginning.
The flight plan will be interpreted in LEGACY mode.
Return
true
on success, false
in case the piloting interface cannot be activated at this point
Parameters
true
to force restarting the flight plan
Activates this piloting interface and starts executing the uploaded flight plan.
The interface should be idle for this method to have effect. If successful, the currently active piloting interface (if any) is deactivated and this one is activated.
The flight plan is resumed if it's currently paused and the restart
parameter is false
; otherwise the flight plan is started from the beginning.
Return
true
on success, false
in case the piloting interface cannot be activated at this point
Parameters
instructs how the flight plan must be interpreted by the drone
true
to force restarting the flight plan
Activates this piloting interface and starts executing the uploaded flight plan at given mission item.
The interface should be idle for this method to have effect. If successful, the currently active piloting interface (if any) is deactivated and this one is activated.
The flight plan is resumed if it's currently paused and the restart
parameter is false
; otherwise the flight plan is started from the mission item.
This method has effect only if isActivateAtMissionItemSupported returns true
.
Return
true
on success, false
in case the piloting interface cannot be activated at this point
Parameters
instructs how the flight plan must be interpreted by the drone
true
to force restarting the flight plan
index of mission item where the flight plan should start
See also
Activates this piloting interface and starts executing the uploaded flight plan at given mission item.
The interface should be idle for this method to have effect. If successful, the currently active piloting interface (if any) is deactivated and this one is activated.
The flight plan is resumed if it's currently paused and the restart
parameter is false
; otherwise the flight plan is started from the mission item.
This method has effect only if both isActivateAtMissionItemSupported and isActivateWithDisconnectionPolicySupported return true
.
Return
true
on success, false
in case the piloting interface cannot be activated at this point
Parameters
instructs how the flight plan must be interpreted by the drone
true
to force restarting the flight plan
index of mission item where the flight plan should start
the behavior of the drone when a disconnection occurs.