NASA’s Mars Ingenuity Drone Almost Crashed Due to Camera Glitch

NASA's Mars Ingenuity drone survived a close call that could have ended in disaster. During its sixth flight, a glitch in its camera image delivery pipeline caused the drone's onboard navigation system to malfunction.

In order to explain what happened, it's crucial to first understand how the Ingenuity drone estimates its flight path and motion. While in the air, the drone keeps track of its motion by using an onboard inertial measurement unit (IMU) that measures Ingenuity's accelerations and rotational rates. Extrapolated, it's able to use this information to estimate where it is, how fast it is moving, and how it is oriented in space. NASA says that the onboard control system reacts to the estimated motions by adjusting control inputs at a rate of 500 times per second.

NASA also says that if the Ingenuity relied entirely on this system though, it would not be very accurate.

"Errors would quickly accumulate, and the helicopter would eventually lose its way," Håvard Grip, Ingenuity's Chief Pilot at NASA's Jet Propulsion Laboratory, explains. "To maintain better accuracy over time, the IMU-based estimates are nominally corrected on a regular basis, and this is where Ingenuity’s navigation camera comes in."

During a majority of the time it is in the air, Ingenuity's downward-facing navigation cameras take 30 pictures a second of the surface and feeds that stream into the navigation computer.

This image of Mars was taken from the height of 33 feet (10 meters) by NASA’s Ingenuity Mars helicopter during its sixth flight, on May 22, 2021. | Photo credit: NASA/JPL-Caltech

"Each time an image arrives, the navigation system’s algorithm performs a series of actions," Grip details. "First, it examines the timestamp that it receives together with the image in order to determine when the image was taken. Then, the algorithm makes a prediction about what the camera should have been seeing at that particular point in time, in terms of surface features that it can recognize from previous images taken moments before (typically due to color variations and protuberances like rocks and sand ripples). Finally, the algorithm looks at where those features actually appear in the image. The navigation algorithm uses the difference between the predicted and actual locations of these features to correct its estimates of position, velocity, and attitude."

It's this pipeline of images that suffered a glitch that put the entire system in jeopardy. About 54 seconds into the flight, that image pipeline suffered an error that caused it to drop a single photo from that 30 photos per second pipeline. While it lost that one photo, more importantly, that loss caused the ensuing photos to come in with an improper timestamp.

"From this point on, each time the navigation algorithm performed a correction based on a navigation image, it was operating on the basis of incorrect information about when the image was taken. The resulting inconsistencies significantly degraded the information used to fly the helicopter, leading to estimates being constantly “corrected” to account for phantom errors," Grip says. "Large oscillations ensued."

You can watch the last 29 seconds of the Ingenuity's flight in the clip below:

https://mars.nasa.gov/system/video_items/6021_PIA24598-IngenuityFlightSix.m4v

Luckily, despite this error, Ingenuity was able to safely touch down on the surface within 16 feet of its intended landing location. Grip says that one reason it was able to do so was because of the efforts the engineers of the drone's flight control team put into the programming. Ingenuity has ample "stability margin" that was designed to allow it to tolerate significant errors without crashing, which luckily included errors that would come as the result of poor timing.

Additionally, Grip says that the decision to stop using the navigation camera images as part of the algorithm during the final phase of descent paid off. The team chose this design decision because they believed it would ensure a smooth and continuous set of estimates of the helicopter's motion during the landing phase. Because of this, the errors that were coming from the camera no longer affected the drone once it started its landing procedure.

This image of Ingenuity was taken on May 23, 2021 – the day after its sixth flight – by the Mastcam-Z instrument aboard the Perseverance Mars rover. | Photo credit: NASA/JPL-Caltech/ASU/MSSS

"Ingenuity ignored the camera images in the final moments of flight, stopped oscillating, leveled its attitude, and touched down at the speed as designed," Grip says.

"Looking at the bigger picture, Flight Six ended with Ingenuity safely on the ground because a number of subsystems – the rotor system, the actuators, and the power system – responded to increased demands to keep the helicopter flying. In a very real sense, Ingenuity muscled through the situation, and while the flight uncovered a timing vulnerability that will now have to be addressed, it also confirmed the robustness of the system in multiple ways," he concludes.

"While we did not intentionally plan such a stressful flight, NASA now has flight data probing the outer reaches of the helicopter’s performance envelope. That data will be carefully analyzed in the time ahead, expanding our reservoir of knowledge about flying helicopters on Mars."

Image credits: Header image by NASA/JPL-Caltech/ASU/MSSS

#culture #equipment #news #glitch #ingenuity #mars #marsingenuitydrone #marsingenuityhelicopter #marsperseverancerover #nasa #nasaingenuitydrone #perseverance

NASA's Mars Ingenuity Drone Almost Crashed Due to Camera Glitch

If not for a few critical design decisions, the Ingenuity would have crashed.

NASA Just Flew a Drone on Mars – Here is its First Photo

NASA's Ingenuity drone, which was transported to the Martian surface attached to the Perseverance Rover, has successfully taken flight and sent back its first photos while airborne. It is the first successful flight of a controlled, powered aircraft on another planet.

"We can now say that human beings have flown a rotorcraft on another planet," said MiMi Aung, project manager for Ingenuity at Nasa's Jet Propulsion Laboratory (JPL) in Pasadena, California.

"We've been talking for so long about our 'Wright Brothers moment' on Mars, and here it is."

The video above shows Ingenuity's carbon fiber blades as captured by the Mastcam-Z camera of the Perseverance Mars rover.

As reported by the BBC, confirmation of the drone's successful flight was transmitted via satellite which is orbiting Mars and relayed back to Earth.

NASA/JPL-Caltech

The black-and-white image above is the first sent back to Earth from Ingenuity and was captured with its navigation camera, which only takes lower-resolution black and white images. Additional color images taken from the drone are expected in the coming days.

The solar-powered helicopter first became airborne at 3:34 a.m. EDT (12:34 a.m. PDT) -- 12:33 Local Mean Solar Time (Mars time). This time was determined by the Ingenuity team as having the optimal energy and flight conditions for success. NASA writes that altimeter data indicates Ingenuity climbed to its prescribed maximum altitude of 10 feet (3 meters) and maintained a stable hover for 30 seconds. It then descended, touching back down on the surface of Mars after logging a total of 39.1 seconds of flight.

You wouldn’t believe what I just saw.

More images and video to come…#MarsHelicopterhttps://t.co/PLapgbHeZU pic.twitter.com/mbiOGx4tJZ

-- NASA's Perseverance Mars Rover (@NASAPersevere) April 19, 2021

Though the first flight of Ingenuity only lasted only seconds and the flight was not particularly high by Earth standards, the monumental achievement of flying a powered aircraft on another planet -- especially one with as thin of air and atmosphere as Mars -- cannot be understated.

The Red Planet has a significantly lower gravity – one-third that of Earth’s – and an extremely thin atmosphere with only 1% the pressure at the surface compared to our planet.

Ingenuity as photographed by the Perseverance Rover prior to its first flight. | NASA/JPL-Caltech

"This means there are relatively few air molecules with which Ingenuity’s two 4-foot-wide (1.2-meter-wide) rotor blades can interact to achieve flight," NASA writes. "The helicopter contains unique components, as well as off-the-shelf commercial parts -- many from the smartphone industry -- that were tested in deep space for the first time with this mission."

Fortune favors the bold. (But we still have a back-up plan.) #MarsHelicopter project manager MiMi Aung explains why the team is optimistic about the first flight attempt on Monday: https://t.co/cwCEcDvoQZ pic.twitter.com/CR4jQBGr2M

-- NASA JPL (@NASAJPL) April 18, 2021

NASA is expected to ask the drone to take part in more "adventurous" flights in the days ahead where it will be commanded to fly higher and farther as the engineers seek to test the limits of the technology.

“Ingenuity is the latest in a long and storied tradition of NASA projects achieving a space exploration goal once thought impossible,” said acting NASA Administrator Steve Jurczyk. “The X-15 was a pathfinder for the space shuttle. Mars Pathfinder and its Sojourner rover did the same for three generations of Mars rovers. We don’t know exactly where Ingenuity will lead us, but today’s results indicate the sky -- at least on Mars -- may not be the limit.”

NASA says that the 19.3-inch-tall (49-centimeter-tall) Ingenuity Mars Helicopter contains no science instruments inside its tissue-box-size fuselage. Instead, NASA says that the 4-pound (1.8-kg) rotorcraft is intended to demonstrate whether future exploration of the Red Planet could include an aerial perspective.

Image credits: NASA/JPL-Caltech

#news #cameradrone #first #firstflight #ingenuity #mars #marsingenuitydrone #marsingenuityhelicopter #marsperseverancerover #nasa #nasaingenuitydrone #redplanet

NASA Just Flew a Drone on Mars - Here is its First Photo

It is the first successful flight of a controlled, powered aircraft on another planet.