§ getActiveTask()
int FlightTasks::getActiveTask |
( |
| ) |
const |
|
inline |
Get the number of the active task.
- Returns
- number of active task, -1 if there is none
§ getAvoidanceWaypoint()
const vehicle_trajectory_waypoint_s FlightTasks::getAvoidanceWaypoint |
( |
| ) |
|
Get task avoidance desired waypoints.
- Returns
- auto triplets in the mc_pos_control
§ getConstraints()
const vehicle_constraints_s FlightTasks::getConstraints |
( |
| ) |
|
Get task dependent constraints.
- Returns
- setpoint constraints that has to be respected by the position controller
§ getEmptyAvoidanceWaypoint()
const vehicle_trajectory_waypoint_s& FlightTasks::getEmptyAvoidanceWaypoint |
( |
| ) |
|
Get empty avoidance desired waypoints.
- Returns
- empty triplets in the mc_pos_control
§ getGear()
const landing_gear_s FlightTasks::getGear |
( |
| ) |
|
Get landing gear position.
- Returns
- landing gear
§ getPositionSetpoint()
const vehicle_local_position_setpoint_s FlightTasks::getPositionSetpoint |
( |
| ) |
|
Get the output data from the current task.
- Returns
- output setpoint, to be executed by position control
§ isAnyTaskActive()
bool FlightTasks::isAnyTaskActive |
( |
| ) |
const |
|
inline |
Check if any task is active.
- Returns
- true if a task is active, false if not
§ setYawHandler()
void FlightTasks::setYawHandler |
( |
WeatherVane * |
ext_yaw_handler | ) |
|
|
inline |
Sets an external yaw handler.
The active flight task can use the yaw handler to implement a different yaw control strategy.
§ switchTask() [1/2]
int FlightTasks::switchTask |
( |
| ) |
|
|
inline |
Switch to the next task in the available list (for testing)
- Returns
- 1 on success, <0 on error
§ switchTask() [2/2]
int FlightTasks::switchTask |
( |
FlightTaskIndex |
new_task_index | ) |
|
Switch to a specific task (for normal usage)
- Parameters
-
- Returns
- 1 on success, 0 on no change, <0 on error
§ update()
bool FlightTasks::update |
( |
| ) |
|
Call regularly in the control loop cycle to execute the task.
- Returns
- true on success, false on error
The documentation for this class was generated from the following files: