Betaflight is an open-source firmware for flight controllers that stabilizes multirotor drones and translates pilot commands into motor outputs. It is the dominant firmware in FPV freestyle and racing, where pilots value a direct, low-latency stick feel, sophisticated gyro filtering and the ability to tune almost every parameter of the control loop.
In flight control, Betaflight sits between the sensors and the motors: it reads the gyroscope, runs PID loops for roll, pitch and yaw, mixes the results into individual motor commands and sends them to the ESCs. Its companion application, the Betaflight Configurator, is used to flash the firmware, set up receivers and modes, and adjust tuning without editing code.
Origins and design philosophy of Betaflight
Betaflight descends from a chain of community projects: the Arduino-based MultiWii, its 32-bit port Baseflight, and the fork Cleanflight, from which Betaflight split to focus on flight performance over feature breadth. It is released under the GPL v3 license and developed by volunteers, with hardware manufacturers contributing board targets.
The design philosophy favors manual, rate-based flying. Betaflight runs on 32-bit STM32 microcontrollers (and some compatible chips), and successive releases have dropped older processors to keep loop times fast. Navigation features exist but are deliberately limited compared with autopilot firmware.
How the Betaflight control loop works
Each cycle of the firmware follows a fixed pipeline. The gyro is sampled at several kilohertz, the signal is filtered, the PID controller calculates corrections for each axis and the motor mixer distributes them to the motors. The PID loop frequency is typically 2, 4 or 8 kHz, depending on the processor and gyro.
The table below lists the main stages of this pipeline and what each one contributes.
| Stage | Function | Key settings |
|---|---|---|
| Gyro sampling | Measures angular rates on three axes | Gyro rate, gyro alignment |
| Filtering | Removes motor and frame noise | Low-pass filters, dynamic notch, RPM filter |
| PID controller | Computes corrections from rate error | P, I, D gains, feedforward |
| Motor mixer | Converts axis demands to motor commands | Mixer type, motor direction |
| Motor protocol | Sends commands to the ESCs | DShot300, DShot600, bidirectional DShot |
A distinguishing feature is the RPM filter. With bidirectional DShot, ESCs report each motor’s speed back to the flight controller, which then places narrow notch filters exactly on the motor noise frequencies and their harmonics. This removes noise with less delay than wide low-pass filtering, so pilots can run higher D gains and get sharper handling.
Core features and flight modes
Betaflight offers a focused set of flight modes and safety functions selected on the Modes tab and assigned to radio switches. Acro mode, with no self-leveling, is the default and the mode most experienced pilots use.
| Feature | Purpose | Typical use |
|---|---|---|
| Acro mode | Rate control without self-leveling | Freestyle and racing |
| Angle mode | Limits tilt and self-levels | Training and line-of-sight flying |
| Airmode | Keeps PID authority at zero throttle | Flips and dives |
| Turtle mode | Reverses motors to flip a crashed drone | Recovery after landing upside down |
| GPS rescue | Returns the drone toward home on failsafe | Long-range safety backup |
| Blackbox logging | Records gyro, PID and motor data | Tuning and fault analysis |
Betaflight also drives the on-screen display (OSD) in FPV video, showing battery voltage, current draw, flight time and warnings. It supports common receiver protocols such as CRSF, SBUS and ELRS over serial links, as well as telemetry back to the transmitter.
Betaflight Configurator and tuning workflow
The Betaflight Configurator is the official setup tool, available as a desktop and web application. It connects over USB, flashes firmware builds tailored to the specific board, and exposes tabs for ports, receiver, modes, motors, OSD, PID tuning and Blackbox. A command-line interface (CLI) allows exact parameter changes and full configuration backups with the diff all command.
Modern versions provide slider-based tuning, which scales groups of PID and filter values together so that a pilot can adjust overall response and damping without editing every gain. Serious tuning still relies on Blackbox logs reviewed in a log viewer to check noise, overshoot and propwash oscillation.
A practical workflow keeps changes small and measurable, as summarized in the decision table below.
| Symptom | Likely cause | Typical adjustment |
|---|---|---|
| Hot motors after short flight | Excess noise reaching D term | Check RPM filter, lower D or raise filtering |
| Bounce-back after flips | Insufficient D or I relax setting | Raise D slightly, review I term relax |
| Wobble when descending | Propwash oscillation | Raise D, check dynamic idle |
| Sluggish stick response | Low feedforward or soft rates | Raise feedforward, adjust rates |
Betaflight compared with other firmware
Betaflight is not a full autopilot. It does not provide waypoint missions or robust position hold, which places it in a different niche from navigation-oriented firmware. Choosing a firmware is therefore mainly a question of mission profile.
| Firmware | Primary focus | Navigation capability |
|---|---|---|
| Betaflight | Manual FPV flying, handling quality | Basic GPS rescue only |
| INAV | Navigation for multirotor and fixed-wing | Waypoints, position and altitude hold |
| ArduPilot | General autopilot for many vehicle types | Full mission planning |
| PX4 | Autopilot for research and commercial use | Full mission planning |
Limitations and common mistakes
- Flashing the wrong target can leave a board without working gyro or ports; the target must match the exact flight controller hardware.
- Skipping a configuration backup before updating means rebuilding modes, OSD and tuning from memory.
- Copying another pilot’s tune without checking frame, motors and propellers often causes hot motors or oscillation.
- Relying on GPS rescue as a primary safety system is risky, because it is a best-effort feature and not a certified return-to-home function.
- Ignoring failsafe testing on the bench leaves the drone’s behavior after signal loss unknown.
Explained without jargon
Betaflight is the software brain inside many small racing and freestyle drones. It reads how the drone is moving thousands of times per second. Then it adjusts each motor to follow the pilot’s sticks.
Pilots connect the drone to a computer and use a free program to set it up. They choose switches, screen messages and how sharp the drone should feel. The key idea is control and feel, not automatic flying. Betaflight does not fly routes on its own.
A typical use case
A freestyle pilot builds a 5-inch quadcopter with an F7 flight controller, a 4-in-1 ESC and 1900 KV motors on a 6S battery. After flashing Betaflight through the Configurator, the pilot enables bidirectional DShot and the RPM filter, sets the PID loop to 4 kHz and assigns arming, Airmode and turtle mode to switches.
The first flights show a wobble when diving through gaps. The pilot records a Blackbox log, sees propwash oscillation around 60 Hz, and raises the D gain slider by one step. Motor temperatures stay moderate, and the next session shows cleaner dives with less wobble, at the cost of a slightly warmer motor after hard sequences.