GlossarySensor fusion
Sensor fusion
Sensor fusion combines measurements from several sensors, such as an IMU, GNSS, a magnetometer, a barometer and cameras, into one estimate of a system's state that is more accurate and reliable than any single sensor. On drones and robots, it produces the position, velocity and orientation used for control.
How it works
Each sensor has strengths and weaknesses. An IMU measures acceleration and rotation fast and smoothly, but its position estimate drifts within seconds. GNSS gives absolute position without drift, but updates slowly, is noisy and drops out under cover. A magnetometer gives heading but is distorted by nearby currents and metal. A barometer gives altitude but changes with weather and airflow.
The standard tool is the Kalman filter, usually the extended Kalman filter for nonlinear systems. It predicts the state forward using the IMU and a motion model, then corrects that prediction with each slower measurement as it arrives. Each correction is weighted by how much the filter trusts the measurement compared with its prediction, based on stated noise levels.
The filter also estimates sensor errors, such as gyro and accelerometer biases, and checks each measurement against its prediction. A measurement that disagrees too much is rejected, so a GNSS glitch or a magnetic disturbance does not throw off the estimate. The open-source PX4 and ArduPilot autopilots both document extended Kalman filters that fuse IMU, GNSS, magnetometer, barometer, optical flow and other sensors.
Sensor fusion vs sensor redundancy
Redundancy means carrying several copies of the same sensor, so one can take over if another fails. Fusion combines different sensors to get a better estimate than any one gives. Most autopilots do both: they run fusion on redundant sets of sensors and switch to a healthy set when one fails.
Visual-inertial odometry
Visual-inertial odometry, or VIO, fuses camera images with IMU data to estimate motion without GNSS. The camera tracks features in the scene and bounds IMU drift, and the IMU fills the gaps between frames and gives scale and gravity direction. It needs hardware-synchronized camera and IMU samples and an accurate camera-IMU calibration. VIO keeps no lasting map, so its error grows with distance, and SLAM adds a map to correct that drift. PX4 accepts external VIO input for position control indoors.
Why it matters
Control is only as good as the state estimate. Bad fusion makes drones drift, oscillate or fly away, and makes robots lose track of where they are. Many flight incidents trace to sensor problems, such as a magnetometer next to a power cable.
How to get it right
- Mount the IMU on a rigid point with vibration isolation, away from motors.
- Keep magnetometers far from power wiring, motors and steel.
- Record sensor positions relative to the vehicle center for the filter.
- Synchronize sensor timestamps accurately.
- Calibrate accelerometers, gyros and magnetometers on the finished vehicle.
- Log raw sensor data and filter output to diagnose problems.
Sensor fusion in robotics and drone hardware
Sensor placement, vibration isolation, power wiring routes and timing all affect fusion. A flight controller's layout, the position of the GNSS mast, the routing of battery cables past the compass and the damping of the IMU are hardware decisions that decide how well the estimator works in flight.