Skip to content
ALEX
← Knowledge Centre

Flight Controller Technology

Inside a Flight Controller: Processor, IMU and the Control Loop

A flight controller turns sensor data into motor commands thousands of times a second. Here is what each part of the board does — and why the choices matter.

By ALEX Engineering Team7 min read

A multirotor is aerodynamically unstable. Without constant correction it would tip over within a fraction of a second. The flight controller is the component that makes stable flight possible: it measures how the aircraft is moving, compares that with what the pilot or the mission wants, and adjusts each motor accordingly — continuously.

The main processor

At the heart of most modern flight controllers is a 32-bit microcontroller — very often from the STM32 family, built around an Arm Cortex-M core. Different generations are usually described by their family names: F4, F7, H7 and so on.

The processor runs the flight firmware, which includes:

  • sensor drivers that read the IMU, barometer, magnetometer and GNSS;
  • the state estimator, which fuses those readings into a best estimate of attitude, velocity and position;
  • the controllers — typically cascaded PID loops — that compute corrections; and
  • the output stage, which sends throttle commands to the ESCs.

More processing headroom allows faster loop rates, more sophisticated estimation filters and more peripherals running at once.

The co-processor

Some autopilot designs add a small second microcontroller dedicated to input/output tasks: decoding receiver signals, generating servo and motor outputs, or providing a fail-safe path. Splitting these tasks keeps time-critical I/O separate from the main firmware and can improve robustness. The ALEX Defx V1.0, for example, pairs an STM32F427 main processor with an STM32F100 co-processor.

The IMU

The inertial measurement unit combines a three-axis gyroscope (rotation rate) and a three-axis accelerometer (linear acceleration, including gravity). The gyroscope is the most important sensor on the board: the inner, fastest control loop works directly on its output.

Key properties of an IMU for flight control are noise level, bias stability over temperature, and sensitivity to vibration. Board layout matters too: mechanical isolation and clean power to the sensor reduce noise that would otherwise reach the control loop.

Sensor fusion

No single sensor tells the whole story. Gyroscopes drift over time; accelerometers are noisy and confused by manoeuvring; magnetometers are disturbed by nearby currents; GNSS updates slowly. The estimator — commonly a complementary filter or an extended Kalman filter — blends them, trusting each sensor where it is strongest.

The control loop

Most flight stacks use cascaded loops:

  1. An outer loop compares desired and actual position or velocity and requests an attitude.
  2. A middle loop compares desired and actual attitude and requests a rotation rate.
  3. The inner loop compares desired and actual rotation rate (from the gyroscope) and sets motor outputs.

The inner loop runs fastest — often at several kilohertz on FPV controllers — because it has to react to disturbances before they grow.

Power and interfaces

A flight controller also has to supply clean power to its own sensors and accept noisy battery power from outside. Good designs separate sensitive analog supplies from switching noise, and expose standard interfaces — UART, I²C, CAN, PWM/DShot — so the GNSS module, power module, receiver and ESCs can be integrated without custom wiring.

Choosing a controller

  • FPV and freestyle quadcopters benefit from fast loop rates, compact stacks and direct ESC integration.
  • Industrial multirotors and fixed-wing UAVs benefit from autopilot features: GNSS navigation, mission planning, power monitoring and redundancy.

That is why the ALEX range includes both the F722 V3, aimed at FPV platforms, and the Defx V1.0, built as an avionics core for multirotor and fixed-wing UAVs.

Work with us

Build with ALEX.

Product enquiries, OEM integration, dealer partnerships and institutional orders — talk to the ALEX engineering team.