flight tasks smoothing: refactor param_find -> Param

Plus some style fixes
This commit is contained in:
Beat Küng
2018-03-26 08:19:57 +02:00
parent 398d511fd9
commit 5eb7d8ec5f
7 changed files with 80 additions and 157 deletions
+4 -4
View File
@@ -34,7 +34,7 @@ bool SmoothZTest::brakeUpward()
float acc_max_up = 5.0f;
float acc_max_down = 2.0f;
ManualSmoothingZ smooth(vel, stick_current);
ManualSmoothingZ smooth(nullptr, vel, stick_current);
/* overwrite parameters since they might change depending on configuration */
smooth.overwriteAccelerationDown(acc_max_down); // downward max acceleration of 2m/ss
@@ -86,7 +86,7 @@ bool SmoothZTest::brakeDownward()
float acc_max_up = 5.0f;
float acc_max_down = 2.0f;
ManualSmoothingZ smooth(vel, stick_current);
ManualSmoothingZ smooth(nullptr, vel, stick_current);
/* overwrite parameters since they might change depending on configuration */
smooth.overwriteAccelerationDown(acc_max_down); // downward max acceleration of 2m/ss
@@ -143,7 +143,7 @@ bool SmoothZTest::accelerateUpwardFromBrake()
float acc_max_up = 5.0f;
float acc_max_down = 2.0f;
ManualSmoothingZ smooth(vel, stick_current);
ManualSmoothingZ smooth(nullptr, vel, stick_current);
/* overwrite parameters since they might change depending on configuration */
smooth.overwriteAccelerationDown(acc_max_down); // downward max acceleration of 2m/ss
@@ -192,7 +192,7 @@ bool SmoothZTest::accelerateDownwardFromBrake()
float acc_max_up = 5.0f;
float acc_max_down = 2.0f;
ManualSmoothingZ smooth(vel, stick_current);
ManualSmoothingZ smooth(nullptr, vel, stick_current);
/* overwrite parameters since they might change depending on configuration */
smooth.overwriteAccelerationDown(acc_max_down); // downward max acceleration of 2m/ss