PX4 with Simulink

4 views (last 30 days)
Brandon Fletchuer
Brandon Fletchuer on 15 Apr 2021
Answered: John conner on 28 Feb 2024
I'm looking for a general guidline on how to setup PX4 with the UAV Toolbox and the PX4 MATLAB Addon and simulink. I'm looking to test some guidance algorthims with the PX4 but don't know how to connect all the dots. Here are some of my questions
  1. Do you need the PX4 Hardware in the loop?
  2. Is there any examples on how to connect all the dots between UAV Toolbox, PX4 Addon and Simulink?
  3. If this is not the correct method, what would be the correct method?

Answers (2)

Mark McBroom
Mark McBroom on 16 Apr 2022
  1. You do not need PX4 hardware. The PX4 support package includes a PX4 simulator that you can use in place of actual hardware
  2. The PX4 support package has a number of examples that you can use to get started.

John conner
John conner on 28 Feb 2024
  1. You can do it by using "Host Target" (SIL)
  2. https://nl.mathworks.com/help/supportpkg/px4/
  3. You can search for MIL,SIL,PIL,HIL.
For PIL and HIL you need PX4 hardware. But for MIL and SIL you don't need it. you can check your algorithm by SIL and it is not necessary to go throw PIL and HIL until last section of development.
Also it is not recommended for students without scientific and economic support from college or university, to go through HIL.
You will face lots of problem around software, hardware, connection protocols, electronic/electric problems and so on.

Community Treasure Hunt

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

Start Hunting!