Can't get GPS readings from Pixhawk 4 mini in "Reading GPS Data from PX4 Autopilot" Example
Mostrar comentarios más antiguos
I followed all the steps in the example and am struggling to figure out what is going wrong. I select my Hardware Board as PX4 Pixhawk 4 and my CMake config is px4_fmu-v5_multicopter (I tried with px4_fmu-v5_default as well). My output during a run is in the screenshot I added and I attached my rc.txt. Also, the drone and GPS work with the normal PX4 firmware. Thanks!

3 comentarios
Ankur Bose
el 16 de Sept. de 2021
Not sure if this is problem or just a typo but in the rc.txt you attached, there are typos in line 90 and 96. It should be "sh $BOARD_RC_SENSORS" and "sh /etc/init.d/rc.sensors" respectively.
Apart from that I dont see anything wrong with the rc.txt. Can you tell us how you verified the GPS data with standard PX4?
Samuel Razumovskiy
el 16 de Sept. de 2021
farah bouzidi
el 6 de Jul. de 2022
hello , i have the same problem , statue 1 but the others 0. i didn't change anything on the rc.txt
how can i solve it?
Respuestas (1)
Ankur Bose
el 11 de Nov. de 2021
1 voto
I suggest you use the default Pixhawk rcS as the startup script to do that. We support this in R2021b. Follow the documentation Load and Start Modules on PX4 Autopilot after Boot-Up to know more about this. Launch hardware setup in R2021b and set the startup script as mentioned in Selecting Startup Script for PX4 Autopilot
1 comentario
Samuel Razumovskiy
el 19 de Abr. de 2022
Categorías
Más información sobre Cuboid Scenario Simulation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!