43 _smoothingXY(this,
Vector2f(_velocity)),
44 _smoothingZ(this, _velocity(2), _sticks(2))
matrix::Vector3f _velocity
current vehicle velocity
float _deltatime
passed time in seconds since the task was last updated
void _updateSetpoints() override
updates all setpoints
void updateMaxVelocity(const float &vel_max)
Maximum velocity is required to detect user intention.
void smoothVelFromSticks(float &vel_sp, const float dt)
Smooth velocity setpoint based on flight direction.
void _updateAltitudeLock()
Check and sets for position lock.
matrix::Vector3f _velocity_setpoint
vehicle_constraints_s _constraints
Vehicle constraints.
void _updateXYlock()
applies position lock based on stick and velocity
void smoothVelocity(matrix::Vector2f &vel_sp, const matrix::Vector2f &vel, const float &yaw, const float &yawrate_sp, const float dt)
Smoothing of velocity setpoint horizontally based on flight direction.
float _yaw
current vehicle yaw heading
ManualSmoothingXY _smoothingXY
smoothing for velocity setpoints in xy
FlightTaskManualPositionSmooth()
virtual void _updateSetpoints() override
updates all setpoints
ManualSmoothingZ _smoothingZ
smoothing for velocity in z