Pixhawk 6X / 5X / 6C support by Simulink

55 views (last 30 days)
Oliver on 21 Sep 2022
Answered: Ankur Bose on 4 May 2023 at 8:59
Quick question about support for newer Pixhawk hardware:
The documentation states that support is available up to Pixhawk 4. Does this mean that newer hardware (e.g. Pixhawk 6X) is not supported? Or is this just an issue of whether the hardware has been tested? According to the documentation (https://de.mathworks.com/help/supportpkg/px4/ug/supported-flight-controllers.html) there is at least the possibility to use unlisted hardware. Has anyone made any experience here?
Thank you very much for a short feedback.
Benjamin Kelm
Benjamin Kelm on 23 Feb 2023
@Rasmus Yes, we managed to compile a firmware which is just using 92% or so of the flash memory, allowing for sufficient memory for custom applications. Just as @Arun Mathamkode stated, try to deactivate certain modules in the cmake.

Sign in to comment.

Accepted Answer

Ankur Bose
Ankur Bose on 4 May 2023 at 8:59
Pixhawk 6x can be used with AV Toolbox Support Package for PX4 Autopilots in R2022b and R2023a. Follow the steps mentioned here.

More Answers (2)

Arun Mathamkode
Arun Mathamkode on 23 Feb 2023
Edited: Arun Mathamkode on 28 Feb 2023
Flash overflow issues are seen with Pixhawk 6x during deployment, to resolve this you can consider manually removing unused modules from the cmake file. For example, if you are working with a multi-copter, you can consider removing fixed-wing controllers and related modules and vice-versa.

Arun Mathamkode
Arun Mathamkode on 23 Sep 2022
Edited: Arun Mathamkode on 23 Sep 2022
Even though some of the Pixhawk standard boards are not among the officially supported boards from PX4 support package, There are options provided to use those boards with PX4Support package. To use these boards, select "My board is not listed here" in hardware setup screen (instead of selecting one of the supported boards) and use the Target Hardware as PX4 Pixhawk Series in Simulink. Note that, the complete functionality is not tested with any boards which are not listed, but mostly it should work. Highly recommend using R2022b when you are using these option. For example, refer this documentation on how to use Cube orange board with PX4 Support package.




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by