Why Ingenuity Needed VIO and AI to Fly on Mars

The Ingenuity Mars Helicopter achieved historic flights in the ultra-thin Martian atmosphere by relying heavily on visual-inertial odometry (VIO) and autonomous landing-site artificial intelligence. Because communication delays between Earth and Mars prevented human pilots from steering the craft in real time, Ingenuity had to execute every flight independently. Furthermore, the absence of a Martian GPS network or a strong magnetic field meant the helicopter could not use traditional navigation tools. This article explores how VIO allowed Ingenuity to track its own movement with extreme precision and how onboard AI ensured it could safely land in hazardous, unpredictable terrain.

The Challenge of the Martian Atmosphere

Mars possesses an atmosphere with a volume that is less than one percent of Earth's. Flying in this near-vacuum is equivalent to flying a helicopter at 100,000 feet above Earth. To generate enough lift, Ingenuity’s dual counter-rotating blades had to spin at roughly 2,400 rpm—about five times faster than a standard helicopter on Earth.

In such thin air, the helicopter is highly susceptible to rapid instability. Even a minor gust of wind or a tiny calculation error could cause the aircraft to lose control instantly. Because radio signals take anywhere from 5 to 20 minutes to travel between Earth and Mars, human engineers at NASA’s Jet Propulsion Laboratory could not use joysticks to correct the helicopter's flight path. Ingenuity needed to sense its environment, make hundreds of micro-adjustments per second, and land safely, all entirely on its own.

How Visual-Inertial Odometry (VIO) Enabled Flight

On Earth, drones rely on GPS satellites and magnetic compasses to know where they are and which way they are pointing. Mars has no GPS satellites, and its magnetic field is weak and localized, making compasses useless. To solve this, engineers equipped Ingenuity with a Visual-Inertial Odometry (VIO) system.

VIO works by combining two distinct streams of data:

  • Inertial Data: An onboard Inertial Measurement Unit (IMU) acts like an inner ear, measuring acceleration and angular rates at hundreds of times per second. However, IMUs suffer from "drift"—small errors that quickly add up over time, leading the computer to miscalculate its true position.
  • Visual Data: A downward-facing black-and-white navigation camera takes 30 pictures per second of the Martian ground.

As Ingenuity flew, the VIO algorithm identified distinct visual features on the ground—such as rocks, ridges, and sand ripples—and tracked how those features moved across the camera's field of view from frame to frame. By combining this visual tracking with the IMU data, the flight computer eliminated IMU drift. It accurately calculated the helicopter's exact speed, altitude, and tilt in real time, allowing the rotors to make split-second corrections to keep the craft stable in the thin air.

Autonomous Landing-Site Artificial Intelligence

During its initial five flights, Ingenuity operated over flat, pre-scouted terrain that the Perseverance rover had already deemed safe. However, as the helicopter transitioned into an operational demonstration phase, it began flying over unexplored, rugged regions like the "Séítah" area of the Jezero Crater.

Using VIO over slanted or uneven ground caused a major problem. The VIO algorithms originally assumed the Martian ground was completely flat. Flying over sloped dunes and boulders tricked the visual system, causing the helicopter to pitch and roll unpredictably. Furthermore, Ingenuity was now flying into areas where the landing zones had not been pre-inspected for hazards.

To survive these later flights, NASA uploaded software updates that gave Ingenuity autonomous landing-site AI capabilities. When approaching a designated landing zone, the helicopter used its camera and AI algorithms to scan the terrain below for hazards like steep slopes and large rocks. If the pre-programmed landing spot was deemed unsafe, the AI instantly selected the flattest, safest adjacent patch of ground within its reach and diverted the helicopter there for touchdown.

By pairing the split-second reflexes of visual-inertial odometry with the decision-making power of autonomous landing AI, Ingenuity overcame the physical limits of the Martian environment and completed 72 successful flights.