FW Pos Control: use SlewRate library for airspeed setpoint

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2022-01-07 09:39:10 -05:00
committed by Daniel Agar
parent 30ccfdb2ed
commit 5d7ddf5734
3 changed files with 11 additions and 9 deletions
@@ -60,6 +60,7 @@
#include <lib/landing_slope/Landingslope.hpp>
#include <lib/mathlib/mathlib.h>
#include <lib/perf/perf_counter.h>
#include <lib/slew_rate/SlewRate.hpp>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/defines.h>
#include <px4_platform_common/module.h>
@@ -254,8 +255,6 @@ private:
float _manual_control_setpoint_altitude{0.0f};
float _manual_control_setpoint_airspeed{0.0f};
float _last_airspeed_setpoint{0.f};
hrt_abstime _time_in_fixed_bank_loiter{0};
ECL_L1_Pos_Controller _l1_control;
@@ -364,6 +363,8 @@ private:
void publishOrbitStatus(const position_setpoint_s pos_sp);
SlewRate<float> _slew_rate_airspeed;
/*
* Call TECS : a wrapper function to call the TECS implementation
*/