Use the simple_flight built-in flight controller
mainAirSim includes a built-in flight controller called simple_flight which is used by default. It is a dependency-free, header-only C++11 library designed to work both in simulation and on real hardware.
Key Features:
- Zero Setup: It works out of the box without additional configuration.
- Steppable Clock: By default, it uses a clock that advances with the simulator, allowing for consistent behavior even when the simulation is paused (e.g., during debugging).
- Control Modes: It supports control via angle rate, angle level, velocity, or position through a cascaded PID controller architecture (Position $\rightarrow$ Velocity $\rightarrow$ Angle Level $\rightarrow$ Angle Rate).
- State Estimation: Currently uses simulator ground truth for state estimation.