Most drones run dedicated code. When most OSS drone projects started, embedded Linux systems were still substantially more expensive than microcontrollers, and real-time control systems are probably harder to achieve with Linux than by hand.
Many hobbyist drones are even still based on old 8-bit AVRs because the first few popular projects were based on Arduino.
As far as I know every major project has moved on to 32-bit ARM, though, usually using STM32 Cortex M0 parts.
The Parrot AR.Drone is the only popular drone I know of running Linux as a primary control system.
It's difficult to get the real-time processing and performance you want for a quadrotor control loop with Linux. You usually want to write firmware or use an Real-Time OS.
Re:Dronecode – Open source UAV platform
by tomswartz07 on Monday October 13, 2014 @12:03PM
(#8449240)
It appears that most of the linked project runs from Arduino-based hardware (or at least originiated from the hardware).
I would venture to guess that they don't run a full OS, per se, on the device itself, opting instead for dedicated code running on drop-in microcontrollers.
Do most drones run embedded Linux, or some other OS? (honest question, I have no idea)