Clear Filters
Clear Filters

Can't get GPS readings from Pixhawk 4 mini in "Reading GPS Data from PX4 Autopilot" Example

6 views (last 30 days)
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!
Samuel Razumovskiy
Samuel Razumovskiy on 16 Sep 2021
Yeah that was me debugging. I found the original startup script on github and saw that they were using ".". I guess what I meant is that I get a GPS fix on the correct location on QGroundControl using standard PX4. Also, when the drone boots up with the rc.txt file the GPS doesn't light up.
farah bouzidi
farah bouzidi on 6 Jul 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?

Sign in to comment.

Answers (1)

Ankur Bose
Ankur Bose on 11 Nov 2021
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 Comment
Samuel Razumovskiy
Samuel Razumovskiy on 19 Apr 2022
I returned to this after a while and found that simply updating to R2021b seemed to fix everything. I'm actually able to get readings using the rc.txt as well. Thank you!

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!