Can the UAV Toolbox Support Package for PX4 Autopilots be used with px4 SITL?

39 views (last 30 days)
Tejal Ashiwini Barnwal
Tejal Ashiwini Barnwal on 16 Oct 2021
Commented: fatih ozkan on 28 Jun 2022 at 12:55
I wanted to modify the code for PX4 controller and then use the build firmware with gazebo. Is it possible to do? So, can the UAV Toolbox Support Package for PX4 Autopilots be used with px4 SITL? Also, if yes, are there any tutorials for the same?

Answers (1)

Ankur Bose
Ankur Bose on 19 Oct 2021
The UAV Toolbox Support Package for PX4 Autopilots supports PX4 SITL. See below MATLAB documentations and examples
We support the low fidelity jMAVSim Simulator or you can use the plant designed in Simulink. If you need Gazebo,
  • Build the Simulink model as documented above.
  • Close jMAVSim
  • Build the firmware with gazebo as input (make px4_sitl gazebo)
  3 Comments
fatih ozkan
fatih ozkan on 28 Jun 2022 at 12:55
Hello,
Thank you for your feedback. After trying few things i could run the gazebo model with simulink on px4. But i did it with just connecting option on Hardware section. Are you managing starting with Start button or Step by Step Connect button?
Regards,
Fatih

Sign in to comment.

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by