mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 14:10:34 +08:00
FlightTasks: add getter method to retrieve empty avoidance waypoint in the
mc_pos_control
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user