Open Source Ingenuity
Doghouse – NASA
Watching the Mars rover, maddog is delighted to observe that the small helicopter it carries named Ingenuity has many off-the-shelf components and runs under Linux using free and open source software.
In the middle of the night a friend sent me a message about NASA designing a heavier-than-air drone named Ingenuity to fly on the planet Mars. Even though I had finished my article for this month I knew I had to scrap it and write about Ingenuity, built mostly with off-the-shelf components and Free and Open Source Software (FOSS) which has several real-world (and even Mars-world) ramifications.
The Mars rovers are machines that "have to work." The cost of designing them, launching them, and managing them is tremendous. Not working after all of that expense and time is something that needs to be avoided at all costs.
Plus the operating environment on Mars is so unlike anything on Earth that extra care has to be taken with every component. The air is very thin, only 1/100 of the density of the Earth. The gravity is only 63 percent of the Earth, and the sunlight (needed to charge the solar panels) is much weaker due to the greater distance from the Sun. Not the least of the issues are dust storms and shadows of overhanging rocks that could block the light to the solar panels and keep them from charging.
Operating temperatures of the computer components need to be from -40 Celsius to +40 Celsius, and the electronics have to be shielded from the radiation that we on Earth are protected from by our atmosphere.
One-way communications take 11 minutes, so feedback from any command given is 22 minutes. Even though the Mars rover moves slowly, you still want to program it to move to where you want it to be rather than give "driving" commands.
All of this has to be designed and tested very carefully and under conditions duplicated as closely as possible on Earth. Therefore the design and test cycles are very long.
One of the previous rovers, Opportunity, was launched on July 7, 2003, and landed on January 25, 2004. It continued to do work until June 10, 2018. Of course the design, manufacturing, and testing had to be done many years before its launch.
The processor chosen for Opportunity was a RAD6000, a PowerPC RISC processor that was made for very difficult environments and ran at various frequencies of 2.5, 5, 10, and 20MHZ. It also used about 40 Field Programmable Gate Arrays (FPGAs) to do the heavy duty processing for things like image recognition and image compression, since the FPGAs could be turned on, do the processing, and be turned off to save power.
The newest Mars rover, Perseverance, was built along the lines of an earlier, successful rover named Curiosity (which is still active), both of which run VxWorks, which NASA has been working with for a long time.
Perseverance landed on February 18, 2021. However, this newest Mars rover held a surprise strapped to its "belly," the small helicopter named Ingenuity.
Ingenuity is considered by NASA to be a "technology demonstration." Even if the "technology demonstration" fails completely, the main aim of the mission, Perseverance, is unaffected.
Ingenuity was "icing on the cake" (or as a friend of mine put it, "lattice crust on the Pi") because the Ingenuity was built using a lot of off-the-shelf parts that used free and open source software. This dramatically shortened the amount of time it took to design, assemble, and test the system, and also reduced the cost of the final technology.
The main processor board for the Ingenuity CPU could easily be used in a cell phone or a platform like a Raspberry Pi 3. It uses a Qualcomm 801 Snapdragon processor, very low power, but with a GPU and Digital Signal Processors (DSPs). As such, it has more processing power than the processors used on the much larger rover. Many of the other parts for the helicopter were ordered from SparkFun electronics.
It runs an Open-Source Flight Software Framework called "F' (F Prime)" which runs on a Raspberry Pi 3 under Linux. You could (with some work and study) conceivably build your own "Ingenuity" and develop it along with NASA.
This is not the first time that NASA has created open source software. NASA was doing it even before the term "open source" was coined through a NASA program called COSMIC, which released many software projects to the public.
One of my favorite programs at the time (1985) was CLIPS [2], a language that is used for writing embedded expert systems. That software has now been spun out of NASA, but it is still being maintained over 25 years later. In the age of AI, sometimes it is interesting to look at the much easier and more flexible concept of "expert systems" to do our work. I may write more about my relationship with CLIPS sometime soon.
Infos
- F Prime: https://github.com/nasa/fprime
- CLIPS: http://www.clipsrules.net/
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.