A modern drone is far more than a flying frame with spinning propellers; it is a fast-moving robotic system packed with sensors and computing hardware. At the centre of the aircraft sits its onboard computer, usually split into a dedicated flight controller and an optional companion computer that work together to keep the drone stable and on course.
Embedded Processors and Memory
Unlike a standard laptop built for general tasks, a drone relies on specialized embedded processors designed for strict power limits, low weight, and predictable speed.
Most advanced drones divide computing into two layers. The first layer is the flight controller, powered by a Microcontroller Unit (MCU) such as an ARM Cortex-M chip. This compact processor handles basic flight stability, reading motion data from the Inertial Measurement Unit (IMU) and sending motor speed adjustments to the Electronic Speed Controllers hundreds or even over a thousand times per second.
For higher-level tasks, industrial and autonomous drones add a companion computer built around a System on a Chip (SoC), such as an NVIDIA Jetson or ARM Cortex-A processor. While the MCU keeps the drone level, the SoC handles heavy workloads like running obstacle-avoidance vision models, processing live camera feeds, and mapping surroundings without GPS.
Memory is split in a similar way. Flight controllers use small amounts of fast RAM and onboard flash memory to store firmware and flight logs, whereas companion computers carry gigabytes of RAM and solid-state storage to handle video streams and mapping data.
Real-Time Operating Systems (RTOS)
A standard desktop operating system can pause briefly to update background apps, which would be disastrous mid-flight. Instead, flight controllers run on a Real-Time Operating System (RTOS) such as FreeRTOS or NuttX (used by the open-source PX4 autopilot).
An RTOS guarantees determinism, meaning critical tasks finish within strict microsecond deadlines. Using a priority-based scheduler, the RTOS immediately interrupts lower-priority jobs—like sending battery status to the ground—whenever an urgent sensor reading arrives that requires a motor correction.
How Software Coordinates Aircraft Components
Sitting on top of the RTOS is the flight stack, the layered software that turns raw sensor readings into smooth, controlled flight:
-
Hardware Abstraction Layer (HAL): Connects the flight software to specific chips and sensors so developers can run the same code across different hardware boards.
-
Sensor Fusion: Algorithms like the Extended Kalman Filter blend noisy data from gyroscopes, accelerometers, barometers, and GPS into one accurate estimate of the drone's position and tilt.
-
Control Loops: Compare where the pilot or mission plan wants the drone to go against its actual position, calculating exact thrust changes for each motor.
-
Autonomy and Navigation: Uses camera, radar, or LiDAR data on higher-end systems to plan safe paths around obstacles and follow waypoints.
-
Failsafe Monitors: Constantly watch battery voltage, GPS lock, and radio signal strength, triggering automatic return-to-home or landing routines if anything drops out.
Through tight coordination between hardware and real-time software, a drone's onboard computer turns millions of raw measurements every second into steady, reliable flight. When a companion computer is present, it sends high-level commands over links like MAVLink so the flight controller can execute every move safely and smoothly.