File Exchange

image thumbnail

Embedded Coder Support Package for PX4 Autopilots

Automatically build and deploy flight control algorithms to PX4 Autopilots using Simulink and Embedded Coder


Updated 20 Mar 2019

Using Embedded Coder™ Support Package for PX4® Autopilots, you can generate C++ code, build, and deploy Simulink® models on Pixhawk® flight controllers. The support package uses the PX4 toolchain to compile and deploy algorithms tailored specifically for Pixhawk flight management units and lets you customize algorithms to incorporate onboard sensor data and other PX4-specific services. PX4 is a trademark of Lorenz Meier.

Comments and Ratings (15)


Error(s) encountered while building "px4_readGPS":
### Failed to generate all binary outputs.
Caused by:
Validation error(s):
### Validating other build tools ...
Unable to locate build tool "GNU PX4 Archiver": echo
What is the reason?

Ankur Bose

Hello All,
The Embedded Coder Support Package for PX4 Autopilots is now available in R2018b. If you are working in R2018b, you can try downloading the support package and start working with it.

Abhishek GS

Hello Bart,

You could also reach out via technical support channel.

Ankur Bose

Hello Bart Slinger,
Can you please provide more details about the issue you are facing? If you have any use-case or feature that you would like to be present in the support package, you can let us know. If it helps, you can share your email-id and we can follow up with you about the pain you are facing?

Does not work out of the box. Option Prepare to Run not available.

Abhishek GS

Refer the below link to understand the capabilities of the support package.

Ankur Bose

Abhishek GS

MATLAB Release Compatibility
Created with R2018b
Compatible with R2018b to R2019a
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor