Flight controller

Also known as: FC

On this page 7

A flight controller (FC) is the onboard computer of a drone that reads motion sensors and pilot commands, calculates the required corrections and sends individual speed commands to every motor many thousands of times per second. In flight control for drones, it is the component that turns an inherently unstable multirotor into an aircraft that can hover, turn and hold position on command.

The flight controller combines sensor fusion, a control loop (usually PID-based), a motor mixer and safety logic such as arming and failsafe. Its hardware sets the limits of what is possible, while its firmware, for example Betaflight or INAV, defines how the aircraft actually behaves.

How a flight controller keeps a drone stable

A flight controller stabilizes a drone by running a closed feedback loop: it measures the current attitude and rotation rate, compares them with the setpoint requested by the pilot or autopilot, and corrects the difference by changing motor outputs. Without this loop a multirotor would tip over within a fraction of a second, because it has no natural aerodynamic stability.

Each cycle follows the same sequence. The gyroscope reports angular rates, the firmware filters noise, the PID controller computes a correction for roll, pitch and yaw, and the motor mixing stage distributes that correction across the motors according to the frame geometry. The result is sent to the electronic speed controllers through a protocol such as DShot.

The table below shows the stages of a single control cycle and what each one contributes.

StageInputOutput
Sensor samplingGyroscope and accelerometer dataRaw angular rates and accelerations
FilteringRaw gyro signalSignal with motor noise reduced
PID calculationError between setpoint and measurementCorrection for each axis
Motor mixingAxis corrections and throttleIndividual motor commands
ESC outputMotor commandsDigital signal to speed controllers
Stages of one flight controller cycle

Hardware inside a flight controller

A flight controller board is built around a microcontroller and an inertial measurement unit (IMU), supplemented by interfaces for receivers, video, GPS and telemetry. On larger platforms the same role is filled by an autopilot module with redundant sensors.

PartFunctionTypical example or range
MicrocontrollerRuns firmware and control loopsSTM32 F4, F7 or H7 class
IMUMeasures rotation and accelerationSix-axis MEMS gyro and accelerometer
BarometerEstimates altitude from air pressureUsed for altitude hold
MagnetometerProvides compass headingNeeded for reliable GPS navigation
UART portsConnect receiver, GPS, video transmitterCommonly 3 to 8 ports
Blackbox memoryStores flight logsOnboard flash or SD card
Main hardware parts of a flight controller

The gyroscope sample rate and processor speed determine the achievable PID loop frequency. Racing and freestyle boards commonly run the loop at 4 to 8 kHz, while navigation-oriented controllers often run slower loops and spend more processing on position estimation and mission logic.

Firmware, flight modes and safety logic

Firmware decides how the drone responds to the sticks. The same board can feel completely different depending on the firmware, the rates and expo settings and the selected flight mode. Firmware also implements protections that keep people and equipment safe.

In acro mode the controller holds rotation rates only, so the pilot controls attitude directly. In angle mode it uses the accelerometer to limit tilt and level the aircraft when the sticks are centered. With GPS and a barometer, altitude hold and position hold become possible, and autopilot firmware adds waypoint missions and return-to-home.

Safety functions are equally important. Arming prevents the motors from spinning accidentally, while failsafe defines what happens when the radio link is lost, such as landing, hovering or returning home. A misconfigured failsafe is one of the most common causes of flyaways.

Types of flight controllers and how to choose one

Flight controllers fall into broad families that differ in processing power, sensors and software ecosystem. Choosing the correct family matters more than choosing a specific board, because it determines which firmware and features are available.

FamilyTypical firmwareStrengthTypical use
FPV racing and freestyle FCBetaflightVery fast loops, low latencyFPV racing and freestyle
Navigation FCINAVGPS modes on small hardwareLong-range FPV and fixed wing
Autopilot moduleArduPilot or PX4Missions, redundancy, telemetryCommercial and research drones
Integrated consumer controllerProprietaryPolished automation, obstacle sensingCamera drones
Common flight controller families

The decision table below links common requirements to a sensible choice.

RequirementRecommended choiceReason
Sharp freestyle handlingF7 or H7 board with BetaflightHigh loop rate and advanced filtering
GPS rescue on a small quadNavigation-capable FC with compassReliable heading and position
Survey or mapping missionsAutopilot with redundant IMUsMission planning and fault tolerance
Simple build for beginnersAll-in-one FC and ESC boardFewer wires and solder joints
Choosing a flight controller by requirement

Typical problems and how they are diagnosed

Most flight controller problems come from vibration, configuration errors or wiring, not from faulty boards. Blackbox logging is the most effective diagnostic tool, because it records gyro traces, motor outputs and PID terms for analysis after the flight.

  • Hot motors and oscillation usually indicate gyro noise that reaches the PID loop; better soft mounting and filtering help.
  • Drift in angle mode often follows a skipped accelerometer or IMU calibration on a level surface.
  • Wrong board orientation in the configuration makes the drone flip immediately on takeoff.
  • Propwash oscillation in descents points to tuning, filtering delay or insufficient motor authority.
  • Toilet-bowling in position hold typically reveals magnetic interference near the compass.

A disciplined setup routine prevents most issues: check motor order and direction, verify the receiver channel map, configure failsafe, test arming without propellers and only then perform the first hover. Firmware updates should be followed by a full review of settings, since defaults change between versions.

In everyday language

A flight controller is the brain of a drone. It is a small circuit board, often the size of a matchbox, that constantly feels how the drone is moving and decides how fast each propeller should spin.

Imagine balancing a broom upright on one hand. The hand makes tiny, fast corrections all the time without the person thinking about it. The flight controller does the same thing for the drone, but thousands of times every second. When the pilot moves a stick, the controller translates that wish into the exact motor changes needed. Without it, a multirotor drone could not fly at all.

Seen in the real world

A building inspection company operates a 7-inch quadcopter for close checks of facades and roof edges. The original flight controller has no compass, so the aircraft drifts in gusty wind near tall buildings and the pilot must correct constantly, which tires the operator and blurs the images.

The technician replaces it with a navigation-capable flight controller running INAV, adds a GPS module with a compass mounted 5 cm above the frame, calibrates the IMU and compass, and sets failsafe to return home. Blackbox logs from the first flights reveal gyro noise around 250 Hz, which the technician removes with a notch filter.

The outcome is a drone that holds position within roughly one to two meters in moderate wind, returns automatically if the radio link drops and produces sharper inspection footage. Inspection time per building falls noticeably, because the pilot can concentrate on the camera instead of fighting the wind.