|
Auterion App SDK
Auterion SDK is a library that can be used by AuterionOS apps to communicate with the system.
|
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 ¶meters) | |
| Constructs an AirspeedController with the given parameters. | |
| 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. | |
| const State & | state () const |
| Returns a const reference to the current controller state. | |
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.
|
explicit |
Constructs an AirspeedController with the given parameters.
| parameters | Initial controller parameters. |
| void auterion::AirspeedController::setParameters | ( | const Parameters & | parameters | ) |
Updates controller parameters.
| parameters | New parameters, applied on the next call to update(). |
| void auterion::AirspeedController::update | ( | double | dt, |
| double | airspeed_setpoint, | ||
| std::optional< double > | true_airspeed | ||
| ) |
Runs one update step of the airspeed controller.
| dt | Time step [s]. |
| airspeed_setpoint | Target true airspeed [m/s]. Ramped internally. |
| true_airspeed | True airspeed [m/s]; if empty, the thrust setpoint falls back to half throttle and the integrator is reset. |