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.
- Launch Windows subsystem for Linux (WSL) and in that navigate to your cloned directory of PX4.
- Run the below command in WSL
- git checkout v1.14.3 -f
- 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