69 void update(
double dt,
double airspeed_setpoint, std::optional<double> true_airspeed);
77 std::shared_ptr<AirspeedControllerImpl> _impl;
Implementation details for the AirspeedController class.
Airspeed to normalized thrust controller for fixed-wing aircraft.
Definition airspeed_controller.hpp:28
void setParameters(const Parameters ¶meters)
Updates controller parameters.
void update(double dt, double airspeed_setpoint, std::optional< double > true_airspeed)
Runs one update step of the airspeed controller.
AirspeedController(const Parameters ¶meters)
Constructs an AirspeedController with the given parameters.
const State & state() const
Returns a const reference to the current controller state.
Definition airspeed_controller.hpp:30
double ramp_slope
Maximum slope of the airspeed setpoint ramp [m/s per s].
Definition airspeed_controller.hpp:36
double gain_p
Airspeed PI: proportional gain [normalized thrust per m/s].
Definition airspeed_controller.hpp:32
double gain_i
Airspeed PI: integral gain [1/s], multiplied by gain_p.
Definition airspeed_controller.hpp:34
Definition airspeed_controller.hpp:39
double airspeed_sp_ramped
Definition airspeed_controller.hpp:42
double airspeed_i
Airspeed PI integrator state: integral contribution to the normalized thrust setpoint.
Definition airspeed_controller.hpp:44
double thrust_sp
Normalized thrust setpoint in [0, 1].
Definition airspeed_controller.hpp:46