Why I am unable to receive data on Pixhawk 6x board using UAV Toolbox support package for PX4 Autopilots?

7 views (last 30 days)
I am trying to receive data from Pixhawk 6x in Connected IO mode and Monitor & Tune simulation in R2024a and R2024b release. However, I am getting zero values for accel and gyro values

Accepted Answer

MathWorks Robotics and Autonomous Systems Team
The latest version of the Pixhawk 6x board is only supported by the PX4 Firmware version 1.14.3. Hence while using 1.14.0 firmware (that is used in R2024a and R2024b), the sensors output zero values To workaround the issue.
  1. Launch Windows subsystem for Linux (WSL) and in that navigate to your cloned directory of PX4.
  2. Run the below command in WSL
  3. git checkout v1.14.3 -f
  4. git submodule update --init --recursive
Once the above commands are completed, launch hardware setup screen from MATLAB again. In the "Validate PX4" screen, you might get a warning that the 1.14.3 PX4 firmware version is not tested but ignore it for now and go ahead and finish the setup screen. After this you should be able to run and upload Simulink models

More Answers (0)

Tags

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!