43 #include "VelocitySmoothing.hpp" 67 enum class Axes {XY, XYZ};
72 void reset(Axes axes,
bool force_z_zero =
false);
76 matrix::Vector3f _vel_sp_smooth;
77 bool _position_lock_xy_active{
false};
78 bool _position_lock_z_active{
false};
79 matrix::Vector2f _position_setpoint_xy_locked;
80 float _position_setpoint_z_locked{NAN};
88 } _reset_counters{0, 0, 0, 0};
virtual void _updateSetpoints() override
updates all setpoints
Definition: FlightTaskManualPositionSmoothVel.cpp:118
DEFINE_PARAMETERS_CUSTOM_PARENT(FlightTaskManualPosition,(ParamFloat< px4::params::MPC_JERK_MIN >) _param_mpc_jerk_min,(ParamFloat< px4::params::MPC_JERK_MAX >) _param_mpc_jerk_max,(ParamFloat< px4::params::MPC_ACC_UP_MAX >) _param_mpc_acc_up_max,(ParamFloat< px4::params::MPC_ACC_DOWN_MAX >) _param_mpc_acc_down_max) private void reset(Axes axes, bool force_z_zero=false)
Reset the required axes.
Definition: FlightTaskManualPositionSmoothVel.cpp:57
Definition: FlightTaskManualPosition.hpp:46
void reActivate() override
Call this to reset an active Flight Task.
Definition: FlightTaskManualPositionSmoothVel.cpp:50
Definition: px4_param.h:318
Definition: FlightTaskManualPositionSmoothVel.hpp:45
Flight task for manual position controlled mode.
TODO: document the algorithm |T1| T2 |T3| __| |____ __ Jerk |_| / \ Acceleration ___/ ___ ;" / / V...
Definition: VelocitySmoothing.hpp:54
void _checkEkfResetCounters()
Reset the trajectories when the ekf resets velocity or position.
Definition: FlightTaskManualPositionSmoothVel.cpp:92
bool activate() override
Call once on the event where you switch to the task.
Definition: FlightTaskManualPositionSmoothVel.cpp:41
VelocitySmoothing _smoothing[3]
Smoothing in x, y and z directions.
Definition: FlightTaskManualPositionSmoothVel.hpp:75