Skip to content
Snippets Groups Projects
Commit ede30229 authored by Martina's avatar Martina Committed by Daniel Agar
Browse files

FlightTasks: add getter method to retrieve empty avoidance waypoint in the

mc_pos_control
parent 8190242e
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,12 @@ const vehicle_trajectory_waypoint_s FlightTasks::getAvoidanceWaypoint()
}
}
const vehicle_trajectory_waypoint_s FlightTasks::getEmptyAvoidanceWaypoint()
{
return FlightTask::empty_trajectory_waypoint;
}
int FlightTasks::switchTask(FlightTaskIndex new_task_index)
{
// switch to the running task, nothing to do
......
......@@ -83,6 +83,12 @@ public:
*/
const vehicle_trajectory_waypoint_s getAvoidanceWaypoint();
/**
* Get empty avoidance desired waypoints
* @return empty triplets in the mc_pos_control
*/
const vehicle_trajectory_waypoint_s getEmptyAvoidanceWaypoint();
/**
* Switch to the next task in the available list (for testing)
* @return 1 on success, <0 on error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment