Asphalt One: Active-Control Rocket GNC
An autonomous guidance, navigation and control system for a model rocket: thrust vector control, canard roll control, airbrakes and fail-safe recovery, validated in simulation.
- Category
- Aerospace Controls
- Date
- 2026
- Stack
- C, STM32 HAL, STM32F405, Python, PID control
Asphalt One is an autonomous flight control system that senses a rocket's state, decides, and physically corrects it in real time. One state machine runs the whole flight, and when something breaks the system fails safe instead of failing hard. The results below come from simulation; flight validation is the next step.
Mission: active control from pad to landing
- Boost: thrust vector control. A gimballed motor corrects the trajectory off the pad, before the fins have airspeed.
- Coast: canard roll control. The canards take over at burnout, and the handoff is automatic.
- Apogee: active airbrakes adjust drag mid-flight to hit a target altitude.
- Safety: fault detection. A bad actuator or bad estimate triggers an automatic fallback to passive, safe recovery.
- Descent: vision guidance from nose-cone video gives drift and position estimates for landing prediction.
- Survival: no single point of failure, with a backup computer, independent deployment and an RF beacon.
One state machine runs the whole flight
- Pad: armed and waiting. Exits on more than 3 g for 50 ms.
- Boost: TVC gimbal. Exits at motor burnout.
- Coast: canards and airbrakes. Exits when velocity drops below zero.
- Descent: drogue, then main at 150 m above ground level.
- Safe: any fault in any phase latches SAFE, with the gimbal centered, airbrakes retracted and servo power cut. Recovery stays armed on raw barometer apogee detection.
Architecture and hardware
The flight computer is an STM32F405RGT6 (168 MHz Cortex-M4F with a hardware FPU) running the control loop at 500 Hz. It senses, processes and actuates:
- Sense: ICM-20948 9-DoF IMU and MS5611 barometer, both over I²C
- Process: altitude and velocity estimation, the flight state machine and fault monitor, a TVC PID loop, a canard PI loop and airbrake control
- Actuate: TVC gimbal, canards, airbrakes and the recovery system
- Telemetry: RFM96W LoRa at 433 MHz, with live downlink to a ground station
- Independent of the flight computer: a backup altimeter, an RF beacon and a DVR nose camera
The flight-computer schematic is designed in KiCad around the STM32F405, IMU, barometer, GPS module and LoRa radio. The PCB layout, servo models, backup altimeter, beacon and camera are still to be done.
Firmware
The state machine is written in C on the STM32 HAL and runs every 2 ms from a timer interrupt (500 Hz). It detects liftoff, burnout and apogee from filtered sensor data, hands control from TVC to the canards at measured burnout, and checks servo feedback and filter health every tick. Any fault latches SAFE.
Simulation results
- Thrust vector control: peak pitch error of 3.5° with passive fins, against 0.1° with TVC
- Canard roll control: roll rate cut from 76°/s with passive fins to under 5°/s after the handoff
- Navigation: the barometer (±1.5 m noise, 50 Hz) fused with the accelerometer (500 Hz) cut altitude error 3.7 times, from 1.47 m to 0.40 m RMS
- Airbrakes: a miss of +6 m on a 380 m target, against +61 m with no brakes
- Safety: a canard servo runaway injected at t = 4 s was caught when command and feedback disagreed by more than 3° for 100 ms, latching SAFE in 100 ms
How the simulations were built
- Model: fixed-step Python at 500 Hz, matching the flight loop, with pitch, roll and altitude modelled as decoupled single axes
- Vehicle: 1.8 kg, 65 mm body, Cd 0.45 and a 120 N motor burning for 1.6 s. These are placeholder values pending the final motor and OpenRocket mass model.
- Sensors: Gaussian noise on the barometer and accelerometer, servo slew limits and a ±5° gimbal limit
- Not modelled: wind profile, body flex and coupled 6-DOF dynamics
Next step: validate against OpenRocket and flight logs.