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.

../_images/original_fp.png

Inserting a waypoint#

../_images/dynamic_fp_add.png

Insert a waypoint at index 1 using the insert_waypoint command. The drone will immediately join this new waypoint.

Removing a waypoint#

../_images/dynamic_fp_remove.png

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.