Skip to content

Reflex

Fast, deterministic control and safety loops that keep an autonomous machine stable and alive, whatever its higher-level brain is doing.

Reflex is the involuntary nervous system of the Branes.AI platform. Where Cortex perceives the world and plans where to go, Reflex makes the vehicle get there, and keeps it flying when something goes wrong.

Header-only C++20

No build step, no runtime dependencies. Link branes::reflex and include the controller you need.

Deterministic by construction

Constant-time updates that never allocate and never throw, for hard real-time loops at kilohertz rates.

Type-generic

Controllers are templated on the scalar type: double, float, or custom arithmetic such as Universal posits.

PID to non-linear MPC

Starts with a production-grade PID and grows into LQR, linear MPC, non-linear MPC, and fault-tolerant control.