Meet the Open-Source Software Powering NASA’s Ingenuity Mars Helicopter
July 12, 2021 | NASA JPLEstimated reading time: 4 minutes
When NASA’s Ingenuity Mars Helicopter hovered above the Red Planet April 19 on its maiden voyage, the moment was hailed as the first instance of powered, controlled flight on another planet. Figuring out how to fly on Mars, where the air is thin but gravity is about a third of that on Earth, took years of work. Along with the challenge of developing a craft that was up to the task, the mission needed software to make the unprecedented flights possible.
So they turned to F Prime, a reusable, multi-mission flight software framework designed for CubeSats, small spacecraft, and instruments. The program was initially developed in 2013 by a team led by Tim Canham at NASA’s Jet Propulsion Laboratory in Southern California with the aim of creating a low-cost, portable, pliable software architecture option that would allow components written for one application to be reused easily in other applications and run on a range of processors.
In 2017, the team pushed for F Prime to be released as open-source, meaning anyone could freely access the software’s source code, allowing external collaborators, universities, and the general public to use the framework on their own projects. It is one of hundreds of codes NASA makes available to the public for free, both as open-source or through its software catalog.
“F Prime has enabled a lot of goals we’ve had at JPL to design a truly reusable multi-mission flight architecture with the added bonus of the open-source collaboration and visibility afforded by the Mars Helicopter project,” Canham said. “It’s kind of an open-source victory, because we’re flying an open-source operating system and an open-source flight software framework, and flying commercial parts that you can buy off the shelf, if you wanted to do this yourself someday.” (The helicopter carries a combination of custom-made and off-the-shelf components – many from the world of cell phone technology – including its two cameras.)
Before Ingenuity, F Prime (also written as F’) had already been put through its spacecraft paces, operating successfully aboard the ISS RapidScat scatterometer instrument on the International Space Station since 2014 and JPL’s ASTERIA CubeSat in 2017. Looking forward, F Prime is scheduled to run on projects including NASA’s Lunar Flashlight CubeSat, which will look for surface ice in the Moon’s craters; the agency’s Near-Earth Asteroid Scout CubeSat, which will map an asteroid; and potentially JPL’s Ocean Worlds Life Surveyor instrument, which would help search for water-based life in our solar system.
Aadil Rizvi, flight software lead for Lunar Flashlight and NEA Scout at JPL, says F Prime provides an out-of-the-box solution for several flight software services, such as commanding, telemetry, parameters, and sequencing for the spacecraft. There’s also a sort of “auto-coding” tool that makes F Prime highly portable for use across missions.
“This makes it quite easy to drop in a software component from something like Mars Helicopter into another mission’s flight software such as Lunar Flashlight or make the component available for open-source use by anyone else using F Prime,” Rizvi said. “And it’s pretty cool that a significant portion of software used on the Mars Helicopter is identical to software on another spacecraft going to the Moon, or an asteroid, or sitting on a student’s desk.”
Universities See the Benefits of F Prime
Since its open-source debut, F Prime has gradually begun gaining traction as a useful flight software option for university and student projects.
At Georgia Tech, a team has incorporated F Prime in its GT1 CubeSat, aimed to serve as an education exercise that will carry an interactive and automatic amateur radio payload.
“We chose F Prime after evaluating a handful of flight software frameworks, including the option of writing our own from scratch,” said Sterling Peet, Georgia Tech research faculty member and software lead for GT1. “We don’t have the resources to build all this code from scratch, use, and test it to ensure the necessary levels of reliability in-house. But by using F Prime, we can leverage the legacy it has and also contribute our testing and related benefits back to the F Prime community and project.”
A Carnegie Mellon University student-led team chose F Prime to run its Iris Lunar Rover, a tiny robot designed to prove the feasibility of nano-rovers in planetary exploration. “It was a viable option with a direct link to the creators, so we decided to use it ourselves,” said Iris Deputy Program Manager Raewyn Duvall.
F Prime will control the rover while recording data and monitoring its health.
“The fact that it is open-source gave us a wide range of examples to base our own modules and let us use the forum to get quick answers without having to worry about potential support service charges just to get answers to questions we may have had,” Duvall said.
JPL Small Scale Flight Software Group Supervisor Jeff Levison sees university partnerships like the ones with Georgia Tech and Carnegie Mellon as a two-way street: JPL provides world-leading flight systems expertise to budding engineers, and then down the line, those future engineers could end up bringing their talents and a working understanding of F Prime to start a career at JPL.
“F Prime is not an easy architecture to pick up, so a student who manages to master it and create a solid working project clearly has amazing potential for an organization like JPL,” said Carnegie Mellon’s Duvall. “Many of our students working on Iris that learned F Prime have expressed interest in applying to JPL, which I believe proves F Prime’s worth as a recruitment tool.”
Suggested Items
Bell Announces Bell 505 Dealership Agreement with Chinook Helicopters
02/29/2024 | Bell Textron Inc.Bell Textron, a Textron Inc. company, announced during the HAI Heli-Expo 2024 held in Anaheim, California, that it has appointed Chinook Helicopters as an authorized Bell 505 dealership serving western Canada. “With our 42-year history of flying Bell helicopters, we are enthusiastic about our relationship with a world-leading aircraft manufacturer and genuinely thrilled to be working alongside them,” said Cathy Press, CEO, Chinook Helicopters.
After Three Years on Mars, NASA’s Ingenuity Helicopter Mission Ends
01/26/2024 | NASAAfter its 72nd flight on Jan. 18, 2024, NASA's Ingenuity Mars Helicopter captured a color image showing the shadow of one of its rotor blades that was damaged during a rough landing. NASA’s history-making Ingenuity Mars Helicopter has ended its mission at the Red Planet after surpassing expectations and making dozens more flights than planned.
Airbus Unveils PioneerLab as its New Twin-engine Flying Laboratory
09/26/2023 | AirbusDuring the German National Aviation Conference in Hamburg, Airbus Helicopters unveiled the PioneerLab, its new twin-engine technology demonstrator based on the H145 platform.
U.S. Navy Approves Full-Rate Production for Lockheed Martin's Sikorsky CH-53K Helicopter
12/28/2022 | Lockheed MartinThe U.S. Navy declared full-rate production of the Sikorsky CH-53K helicopter, a decision that is expected to increase production to more than 20 helicopters annually in the coming years.
NHIndustries and NAHEMA Sign Innovative NH90 Support Contract
06/13/2022 | AirbusMarignane, NHIndustries has signed an innovative NH90 support contract with the NATO agency NAHEMA, acting as the contracting authority on behalf of the Direction générale de l'armement (the French Armament General Directorate) and the Direction de la maintenance aéronautique (the French Aeronautics Support Directory) for the French Ministry of the Armed Forces and the BAAINBww for the German Ministry of Defence.