69 (ParamFloat<px4::params::MPC_LAND_SPEED>) _param_mpc_land_speed,
70 (ParamFloat<px4::params::MPC_TILTMAX_LND>) _param_mpc_tiltmax_lnd,
71 (ParamInt<px4::params::MPC_LAND_RC_HELP>) _param_mpc_land_rc_help,
72 (ParamFloat<px4::params::MPC_LAND_ALT1>)
74 (ParamFloat<px4::params::MPC_LAND_ALT2>)
76 (ParamFloat<px4::params::MPC_TKO_SPEED>) _param_mpc_tko_speed
Map from global triplet to local quadruple.
DEFINE_PARAMETERS_CUSTOM_PARENT(FlightTaskAuto,(ParamFloat< px4::params::MPC_LAND_SPEED >) _param_mpc_land_speed,(ParamFloat< px4::params::MPC_TILTMAX_LND >) _param_mpc_tiltmax_lnd,(ParamInt< px4::params::MPC_LAND_RC_HELP >) _param_mpc_land_rc_help,(ParamFloat< px4::params::MPC_LAND_ALT1 >) _param_mpc_land_alt1,(ParamFloat< px4::params::MPC_LAND_ALT2 >) _param_mpc_land_alt2,(ParamFloat< px4::params::MPC_TKO_SPEED >) _param_mpc_tko_speed)
float _getLandSpeed()
Returns landing descent speed.
FlightTaskAutoMapper2()=default
void _preparePositionSetpoints()
WaypointType
This enum has to agree with position_setpoint_s type definition The only reason for not using the str...
void _prepareLandSetpoints()
void _reset()
Resets member variables to current vehicle state.
WaypointType _type_previous
Previous type of current target triplet.
void _prepareVelocitySetpoints()
bool update() override
To be called regularly in the control loop cycle to execute the task.
void _prepareTakeoffSetpoints()
void updateParams() override
See ModuleParam class.
virtual ~FlightTaskAutoMapper2()=default
bool activate(vehicle_local_position_setpoint_s last_setpoint) override
Call once on the event where you switch to the task.
bool _highEnoughForLandingGear()
Checks if gears can be lowered.
float _alt_above_ground
If home provided, then it is altitude above home, otherwise it is altitude above local position refer...
void _updateAltitudeAboveGround()
Computes altitude above ground based on sensors available.
void _prepareIdleSetpoints()
virtual void _generateSetpoints()=0
Generate velocity and position setpoint for following line.