Image

AdaPilot “Sparks” Autopilot Project

Feb. 4, 2016
AdaPilot is a new open-source project to develop a safety-critical flight-controller system based on Ada-SPARK....

AdaPilot is a new open-source project to develop a safety-critical flight-controller system based on Ada-SPARK. It just started, so the website is a bit sparse, but it could be something worth following or getting involved with.

Safety-critical operation is an important reason behind the AdaPilot project. Ada-SPARK and contracts are part of the puzzle for important safety-critical applications already.

The initial code targets multicopters with up to eight rotors, but the platform is flexible so it can be adapted for fixed-wing or single-rotor platforms as well as for ground and sea applications. Three key architecture components are Ada-SPARK (of course), ARM Cortex-M and -R hardware, and CANaerospace. CANaerospace is a lightweight protocol/data format definition for airborne applications using Controller Area Network (CAN) hardware.

The AdaPilot Reference Hardware Development Kit (RHDK) is based on the NECSarm Computer on Module (Fig. 1) featuring an STmicrosystems STM32F4 ARM Cortex-M processor. The module also has an isolated CAN bus interface. The Robotic Application Board is a matching carrier board that exposes interfaces including USB, SD, PWM, USART, and CAN. The environment is designed to handle 10-DOF mAHRS (micro Altitude and Heading Reference System) platforms available from a variety of third parties.

1. The AdaPilot initial platform NECSarm Computer on Module is based on a STM32F4 ARM Cortex-M processor and supports an isolated CAN interface.

The project is ambitious. There are other autopilot open-source projects already out there like OpenPilot and ArduPilot. Like most projects, AdaPilot is looking for supporters and contributors. That may be harder given Ada’s more limited community, but it is a good way to get started with Ada since this is a well-defined application area.

The development platform at this point is from AdaCore. They sell Ada tools commercially, but there are free, open-source versions at libre.adacore.com. The platforms address Ada across the board down to a configurable/customizable run-time library consisting of the “Small Footprint” (SFP) and Ravenscar profiles.

Ada and SPARK are used in the aviation and military industries for a reason. 

About the Author

William Wong Blog | Senior Content Director

Bill Wong covers Digital, Embedded, Systems and Software topics at Electronic Design. He writes a number of columns, including Lab Bench and alt.embedded, plus Bill's Workbench hands-on column. Bill is a Georgia Tech alumni with a B.S in Electrical Engineering and a master's degree in computer science for Rutgers, The State University of New Jersey.

He has written a dozen books and was the first Director of PC Labs at PC Magazine. He has worked in the computer and publication industry for almost 40 years and has been with Electronic Design since 2000. He helps run the Mercer Science and Engineering Fair in Mercer County, NJ.

Sponsored Recommendations

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!