Hardware Support

Pixhawk PX4 Support from Embedded Coder

Automatically build and deploy flight control algorithms to the Pixhawk Autopilot using Simulink and Embedded Coder

Explore gallery (4 images)

Capabilities and Features

Using Pixhawk support for Embedded Coder®, you can generate ANSI/ISO C from Simulink® models specifically tailored for the Pixhawk FMU (flight management unit) using the Pixhawk Toolchain. You can customize algorithms that leverage onboard sensor data and other calculations at runtime.

Support highlights include:

  • The ability to simulate and test different airframe models and control system designs in Simulink and deploy designs onto the PX4 automatically.
  • An example included in the support package, which demonstrates attitude controls for a quad/hex set up.
  • Integration of the Pixhawk CMAKE build system with Embedded Coder
  • A sensor/peripheral block library for inertial measurements, GPS, vehicle estimation, LED, speakers, PWM output, and ADC and serial Rx/Tx. This can be extended to support other sensors/peripherals.
  • The ability to view the value of signals and tune parameters in real time so you can interactively test the behavior of the generated code.
  • Capabilities to log and record flight data of sensors, actuators, or any part of your Simulink control model for test and analysis.
  • The ability to read and write uORB topics as well as enabling asynchronous tasking with uORB.

About Pixhawk (PX4)

The Pixhawk (PX4) autopilot is an open-hardware, low-cost flight control unit. It provides various on-board sensor value inputs and PWM outputs. It also provides an ARM® Cortex®-M4 microprocessor running the NuttX real-time operating system (RTOS), which supports flight control and fixed and rotary winged air vehicle management.


Platform and Release Support

This support package is available for 64-bit Microsoft® Windows® and Linux. For more information on support for specific releases, please refer to this MATLAB Answers post.

Related Hardware Support Views: 3D Robotics, Aerospace and Defense, Control Systems, C ∕ C++ Code Generation, Embedded Coder, Embedded Systems, Other ∕ Miscellaneous, Project-Based Learning, RTOS, Simulink Product Family, Technical Services and Consulting