PX4 Autopilots Support from UAV Toolbox

Access PX4 autopilot peripherals with UAV Toolbox and automatically build and deploy flight control algorithms with Embedded Coder

Capabilities and Features

Using the UAV Toolbox Support Package for PX4®Autopilots, you can access autopilot peripherals from MATLAB®and Simulink®. With Embedded Coder®, you can also automatically generate C++ code and use the PX4 toolchain to build and deploy algorithms tailored specifically for Pixhawk®and Pixracer flight management units (FMU), all while incorporating onboard sensor data and other PX4-specific services.

Key capabilities:

  • Integration of code generated from Simulink with the general PX4 architecture
  • Custom startup script for PX4-based autopilots
  • Integration with Cygwin to build code on Microsoft®Windows®machines
  • A sensor/peripheral block library for inertial measurements, GPS, vehicle estimation, PWM output, ADC, I2C, and serial Rx/Tx. This can beextended to support other sensors/peripherals.
  • The ability to access autopilot peripherals during simulation on the PX4 host target
  • 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
  • The ability to read and write uORB topics as well as enabling real-time scheduling with uORB
  • 自动部署飞行控制的能力designs directly from Simulink onto Pixhawk autopilots.
  • Log signals to the micro-SD card connected to Pixhawk series flight controllers
  • Perform code verification and validation with processor-in-the-loop (PIL) simulation
  • Examples on how to log and record flight data of sensors, actuators, or any part of your Simulink control model for test and analysis.

About PX4

PX4 is a trademark of Lorenz Meier and consists of an open-hardware autopilot ecosystem and low-cost flight control units. Pixhawk (PX4) autopilots are low-cost flight control units based on open hardware. They feed on-board sensor inputs to algorithms running on ARM®Cortex®-M microprocessors to drive motors using PWM outputs. They are based on NuttX real-time operating system (RTOS) and support flight control and vehicle management of fixed- and rotary-winged aircraft.

Platform and Release Support

Seethe hardware support package system requirements tablefor current and prior version, release, and platform availability.

Platform and Release Support

Seethe hardware support package system requirements tablefor current and prior version, release, and platform availability.

Explore gallery (4 images)

Supported Hardware

PX4 Autopilot FMU Version Releases Supported
Pixhawk 1 FMUv2 R2018b onward
Pixhawk Cube (Pixhawk 2.1) FMUv3 R2018b onward
Pixracer FMUv4 R2018b onward
Pixhawk 4 FMUv5 R2018b onward