mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 02:51:37 +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)
|
int FlightTasks::switchTask(FlightTaskIndex new_task_index)
|
||||||
{
|
{
|
||||||
// switch to the running task, nothing to do
|
// switch to the running task, nothing to do
|
||||||
|
|||||||
@@ -83,6 +83,12 @@ public:
|
|||||||
*/
|
*/
|
||||||
const vehicle_trajectory_waypoint_s getAvoidanceWaypoint();
|
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)
|
* Switch to the next task in the available list (for testing)
|
||||||
* @return 1 on success, <0 on error
|
* @return 1 on success, <0 on error
|
||||||
|
|||||||
Reference in New Issue
Block a user