← All posts

Putting Betaflight in the simulation loop

How Elodin, Betaflight SITL and the pilot exchange observations and commands.

Elodin FPV render from the 2026 practice layout

We moved scored flights to an Elodin runner with Betaflight software-in-the-loop. Elodin models the vehicle and rotor dynamics. Betaflight runs its rate controller and motor mixer in 1 kHz lockstep with that model. The pilot receives synchronized camera and inertial observations and sends Mode 2 commands at 30 Hz.

Checking the interfaces

We verified that the four AETR channels round-trip through the MSP command path with 1 µs resolution. In the Elodin runner, the same channel ordering feeds the firmware's simulated receiver. This separates checking command encoding from measuring how the controller actually flies the course.

The team also measured the preset with step inputs in a simulated hover. Its pitch response was slower than its roll response, and increasing the gains destabilized the tested configuration. The physical airframe's command-to-motor response and tune still need independent measurements.

Upstream Elodin lockstep bridge