Auterion App SDK
Auterion SDK is a library that can be used by AuterionOS apps to communicate with the system.
Loading...
Searching...
No Matches
auterion::AirspeedController Class Reference

Airspeed to normalized thrust controller for fixed-wing aircraft. More...

#include <auterion_sdk/control/fixedwing/airspeed_controller.hpp>

Classes

struct  Parameters
 
struct  State
 

Public Member Functions

 AirspeedController (const Parameters &parameters)
 Constructs an AirspeedController with the given parameters.
 
void setParameters (const Parameters &parameters)
 Updates controller parameters.
 
void update (double dt, double airspeed_setpoint, std::optional< double > true_airspeed)
 Runs one update step of the airspeed controller.
 
const State & state () const
 Returns a const reference to the current controller state.
 

Detailed Description

Airspeed to normalized thrust controller for fixed-wing aircraft.

Rate-limits the airspeed setpoint with a ramp, then runs a PI controller around a half-throttle feedforward. Falls back to half throttle when no airspeed measurement is available.

Constructor & Destructor Documentation

◆ AirspeedController()

auterion::AirspeedController::AirspeedController ( const Parameters &  parameters)
explicit

Constructs an AirspeedController with the given parameters.

Parameters
parametersInitial controller parameters.

Member Function Documentation

◆ setParameters()

void auterion::AirspeedController::setParameters ( const Parameters &  parameters)

Updates controller parameters.

Parameters
parametersNew parameters, applied on the next call to update().

◆ update()

void auterion::AirspeedController::update ( double  dt,
double  airspeed_setpoint,
std::optional< double >  true_airspeed 
)

Runs one update step of the airspeed controller.

Parameters
dtTime step [s].
airspeed_setpointTarget true airspeed [m/s]. Ramped internally.
true_airspeedTrue airspeed [m/s]; if empty, the thrust setpoint falls back to half throttle and the integrator is reset.

The documentation for this class was generated from the following file: