activate

open fun activate(restart: Boolean): Boolean

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

restart

true to force restarting the flight plan


abstract fun activate(@NonNull interpreter: FlightPlanPilotingItf.Interpreter, restart: Boolean): Boolean

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

interpreter

instructs how the flight plan must be interpreted by the drone

restart

true to force restarting the flight plan


abstract fun activate(@NonNull interpreter: FlightPlanPilotingItf.Interpreter, restart: Boolean, missionItem: Int): Boolean

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

interpreter

instructs how the flight plan must be interpreted by the drone

restart

true to force restarting the flight plan

missionItem

index of mission item where the flight plan should start

See also


abstract fun activate(@NonNull interpreter: FlightPlanPilotingItf.Interpreter, restart: Boolean, missionItem: Int, disconnectionPolicy: FlightPlanPilotingItf.DisconnectionPolicy): Boolean

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

interpreter

instructs how the flight plan must be interpreted by the drone

restart

true to force restarting the flight plan

missionItem

index of mission item where the flight plan should start

disconnectionPolicy

the behavior of the drone when a disconnection occurs.

See also