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, all while incorporating onboard sensor data and other PX4-specific services.
Install hardware support and configure hardware connection
Prepare model for hardware connection, add blocks to support PX4 Autopilots
Run model on target hardware