Smoothing-classes: initialize to parameters

This commit is contained in:
Dennis Mannhart
2018-07-20 09:26:18 +02:00
committed by Lorenz Meier
parent 5ef2a61be5
commit 7d7a2dffbf
4 changed files with 10 additions and 13 deletions
@@ -92,9 +92,9 @@ private:
/* Acceleration that depends on vehicle state
* _acc_max_down <= _acc_state_dependent <= _acc_max_up
*/
float _acc_state_dependent{0.0f};
float _acc_state_dependent;
float _max_acceleration; // can be up or down maximum accleration
float _vel_sp_prev;
float _max_acceleration{0.f};
DEFINE_PARAMETERS(
(ParamFloat<px4::params::MPC_ACC_UP_MAX>) _acc_max_up,