mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 06:11:36 +08:00
mc_pos_control: member initialization during deceleration
This commit is contained in:
committed by
Lorenz Meier
parent
46f91154a4
commit
389f897b04
@@ -45,7 +45,7 @@ ManualSmoothingXY::ManualSmoothingXY(ModuleParams *parent, const matrix::Vector2
|
|||||||
|
|
||||||
{
|
{
|
||||||
_acc_state_dependent = _acc_xy_max.get();
|
_acc_state_dependent = _acc_xy_max.get();
|
||||||
_jerk_state_dependent =_jerk_max.get();
|
_jerk_state_dependent = _jerk_max.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ ManualSmoothingZ::ManualSmoothingZ(ModuleParams *parent, const float &vel, const
|
|||||||
ModuleParams(parent),
|
ModuleParams(parent),
|
||||||
_vel(vel), _stick(stick), _vel_sp_prev(vel)
|
_vel(vel), _stick(stick), _vel_sp_prev(vel)
|
||||||
{
|
{
|
||||||
_acc_state_dependent = _acc_max_up.get();
|
_acc_state_dependent = _acc_max_up.get();
|
||||||
_max_acceleration = _acc_max_up.get();
|
_max_acceleration = _acc_max_up.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* in manual altitude control apply acceleration limit based on stick input
|
/* in manual altitude control apply acceleration limit based on stick input
|
||||||
|
|||||||
Reference in New Issue
Block a user