mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 21:01:35 +08:00
Smoothing: initialize ModuleParam in body of constructor because of compiler error
This commit is contained in:
committed by
Lorenz Meier
parent
9c2ec3c229
commit
46f91154a4
@@ -42,9 +42,10 @@
|
||||
|
||||
ManualSmoothingZ::ManualSmoothingZ(ModuleParams *parent, const float &vel, const float &stick) :
|
||||
ModuleParams(parent),
|
||||
_vel(vel), _stick(stick), _acc_state_dependent(_acc_max_up.get()), _max_acceleration(_acc_max_up.get()),
|
||||
_vel_sp_prev(vel)
|
||||
_vel(vel), _stick(stick), _vel_sp_prev(vel)
|
||||
{
|
||||
_acc_state_dependent = _acc_max_up.get();
|
||||
_max_acceleration = _acc_max_up.get();
|
||||
}
|
||||
|
||||
/* in manual altitude control apply acceleration limit based on stick input
|
||||
|
||||
Reference in New Issue
Block a user