43 #include <px4_platform_common/module_params.h> 58 ManualSmoothingZ(ModuleParams *parent,
const float &vel,
const float &stick);
68 void smoothVelFromSticks(
float &vel_sp,
const float dt);
96 void velocitySlewRate(
float &vel_sp,
const float dt);
106 void updateAcceleration(
float &vel_sp,
const float dt);
113 void setMaxAcceleration();
129 (ParamFloat<px4::params::MPC_ACC_UP_MAX>) _param_mpc_acc_up_max,
130 (ParamFloat<px4::params::MPC_ACC_DOWN_MAX>) _param_mpc_acc_down_max,
131 (ParamFloat<px4::params::MPC_JERK_MAX>) _param_mpc_jerk_max
float _vel_sp_prev
previous velocity setpoint
float _max_acceleration
can be up or down maximum acceleration
const float & _vel
vehicle velocity (dependency injection)
void overwriteAccelerationDown(float acc_max_down)
float _acc_state_dependent
acceleration that depends on _intention
void overwriteAccelerationUp(float acc_max_up)
const float & _stick
stick input (dependency injection)
void overwriteJerkMax(float jerk_max)
ManualIntentionZ getIntention()
Get user intention.
float getMaxAcceleration()
Get max accleration.
ManualIntentionZ
User-intention.