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. PX4 is a trademark of Lorenz Meier.
Out of the box support for Pixhawk 1, Pixhawk 2.1 (Cube), Pixracer and Pixhawk 4. Other FMU based boards are also supported.
Automated C++ Code - generation, Integration of code generated from Simulink with the general PX4 architecture Deployment, and Execution on the Pixhawk boards.
Deployment support for PX4 on host computer as PX4 Host Target which the PX4 community refers to as PX4 Software-In-The-Loop (PX4 SITL).
Support for Code verification and validation using the Processor-In-Loop simulation.
Simulink library to access the Pixhawk peripherals such as ADC, PWM, Serial and I2C.
Simulink library for the uORB middleware.
Simulink library to get data from the PX4 sensor and estimator module such as Accelerometer, Gyroscope, Magnetometer, Battery, Vehicle Attitude and GPS.
Data logging support from Simulink on the SD card while flying.
If you have any support package download or installation problems, obtain the installation file log by following the instructions mentioned here and contact - Technical Support with the installation log.