How to update a FlightPlan dynamically#
The FlightPlan Guidance mode uses a list of waypoints. This list can be
dynamically modified with the following commands: insert_waypoint, remove_waypoint,
replace_waypoint and set_current_index.
Inserting a waypoint#
Insert a waypoint at index 1 using the insert_waypoint command. The drone will
immediately join this new waypoint.
Removing a waypoint#
Remove a waypoint at index 1 using the remove_waypoint command. The drone will
immediately join the next waypoint.
Replacing a waypoint#
The replace_waypoint command executes both operations simultaneously: it
removes a given waypoint and replaces it by a new one.
Note
Waypoints will only be updated once every second.