Betaflight

Also known as: Betaflight Configurator

On this page 8

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.

StageFunctionKey settings
Gyro samplingMeasures angular rates on three axesGyro rate, gyro alignment
FilteringRemoves motor and frame noiseLow-pass filters, dynamic notch, RPM filter
PID controllerComputes corrections from rate errorP, I, D gains, feedforward
Motor mixerConverts axis demands to motor commandsMixer type, motor direction
Motor protocolSends commands to the ESCsDShot300, DShot600, bidirectional DShot
Stages of the Betaflight flight loop

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.

FeaturePurposeTypical use
Acro modeRate control without self-levelingFreestyle and racing
Angle modeLimits tilt and self-levelsTraining and line-of-sight flying
AirmodeKeeps PID authority at zero throttleFlips and dives
Turtle modeReverses motors to flip a crashed droneRecovery after landing upside down
GPS rescueReturns the drone toward home on failsafeLong-range safety backup
Blackbox loggingRecords gyro, PID and motor dataTuning and fault analysis
Selected Betaflight features

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.

SymptomLikely causeTypical adjustment
Hot motors after short flightExcess noise reaching D termCheck RPM filter, lower D or raise filtering
Bounce-back after flipsInsufficient D or I relax settingRaise D slightly, review I term relax
Wobble when descendingPropwash oscillationRaise D, check dynamic idle
Sluggish stick responseLow feedforward or soft ratesRaise feedforward, adjust rates
Common tuning symptoms and responses

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.

FirmwarePrimary focusNavigation capability
BetaflightManual FPV flying, handling qualityBasic GPS rescue only
INAVNavigation for multirotor and fixed-wingWaypoints, position and altitude hold
ArduPilotGeneral autopilot for many vehicle typesFull mission planning
PX4Autopilot for research and commercial useFull mission planning
Betaflight and related firmware

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.