|
PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <FlightTaskOffboard.hpp>
Public Member Functions | |
| FlightTaskOffboard ()=default | |
| virtual | ~FlightTaskOffboard ()=default |
| bool | update () override |
| To be called regularly in the control loop cycle to execute the task. More... | |
| bool | activate (vehicle_local_position_setpoint_s last_setpoint) override |
| Call once on the event where you switch to the task. More... | |
| bool | updateInitialize () override |
| Call before activate() or update() to initialize time and input data. More... | |
Public Member Functions inherited from FlightTask | |
| FlightTask () | |
| virtual | ~FlightTask ()=default |
| virtual void | reActivate () |
| Call this to reset an active Flight Task. More... | |
| virtual bool | applyCommandParameters (const vehicle_command_s &command) |
| To be called to adopt parameters from an arrived vehicle command. More... | |
| virtual bool | updateFinalize () |
| Call after update() to constrain the generated setpoints in order to comply with the constraints of the current mode. More... | |
| const vehicle_local_position_setpoint_s | getPositionSetpoint () |
| Get the output data. More... | |
| const vehicle_constraints_s & | getConstraints () |
| Get vehicle constraints. More... | |
| const landing_gear_s & | getGear () |
| Get landing gear position. More... | |
| const vehicle_trajectory_waypoint_s & | getAvoidanceWaypoint () |
| Get avoidance desired waypoint. More... | |
| void | handleParameterUpdate () |
| Call this whenever a parameter update notification is received (parameter_update uORB message) More... | |
| virtual void | setYawHandler (WeatherVane *ext_yaw_handler) |
| Sets an external yaw handler which can be used by any flight task to implement a different yaw control strategy. More... | |
| void | updateVelocityControllerIO (const matrix::Vector3f &vel_sp, const matrix::Vector3f &thrust_sp) |
Private Attributes | |
| matrix::Vector3f | _position_lock {} |
Additional Inherited Members | |
Static Public Attributes inherited from FlightTask | |
| static const vehicle_local_position_setpoint_s | empty_setpoint = {0, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN, {NAN, NAN, NAN}, {NAN, NAN, NAN}, {NAN, NAN, NAN}, {}} |
| Empty setpoint. More... | |
| static const vehicle_constraints_s | empty_constraints = {0, NAN, NAN, NAN, NAN, NAN, NAN, NAN, false, {}} |
| Empty constraints. More... | |
| static const landing_gear_s | empty_landing_gear_default_keep = {0, landing_gear_s::GEAR_KEEP, {}} |
| default landing gear state More... | |
Protected Member Functions inherited from FlightTask | |
| void | _resetSetpoints () |
| Reset all setpoints to NAN. More... | |
| void | _evaluateVehicleLocalPosition () |
| Check and update local position. More... | |
| virtual void | _setDefaultConstraints () |
| Set constraints to default values. More... | |
| virtual bool | _checkTakeoff () |
| Determine when to trigger a takeoff (ignored in flight) More... | |
| void | _initEkfResetCounters () |
| Monitor the EKF reset counters and call the appropriate handling functions in case of a reset event. More... | |
| void | _checkEkfResetCounters () |
| virtual void | _ekfResetHandlerPositionXY () |
| virtual void | _ekfResetHandlerVelocityXY () |
| virtual void | _ekfResetHandlerPositionZ () |
| virtual void | _ekfResetHandlerVelocityZ () |
| virtual void | _ekfResetHandlerHeading (float delta_psi) |
Static Protected Attributes inherited from FlightTask | |
| static constexpr uint64_t | _timeout = 500000 |
| maximal time in us before a loop or data times out More... | |
Definition at line 44 of file FlightTaskOffboard.hpp.
|
default |
|
virtualdefault |
|
overridevirtual |
Call once on the event where you switch to the task.
| state | of the previous task |
Reimplemented from FlightTask.
Definition at line 58 of file FlightTaskOffboard.cpp.
References FlightTask::activate().
|
overridevirtual |
To be called regularly in the control loop cycle to execute the task.
Implements FlightTask.
Definition at line 67 of file FlightTaskOffboard.cpp.
|
overridevirtual |
Call before activate() or update() to initialize time and input data.
Reimplemented from FlightTask.
Definition at line 42 of file FlightTaskOffboard.cpp.
References FlightTask::updateInitialize().
|
private |
Definition at line 58 of file FlightTaskOffboard.hpp.
|
protected |
Definition at line 55 of file FlightTaskOffboard.hpp.