SITL Altitude issue with Firmware v1.10.1

Hi all,

I’m still pretty new to QGroundControl and PX4. I hope this is the right forum to post this question.

I’ve been working with the PX4 SITL, and I’ve noticed a difference in how QGroundControl reports the AMSL altitude between PX4 Firmware versions 1.9.0 and 1.10.1. It seems by default, the SITL sets the home location to lat/long = 47.3977419, 8.5455941. I noticed that v1.9.0 reports the AMSL correctly as 488.1m, but v.1.10.1 reports the altitude as 0m.

Is this behavior expected? Am I missing something in configuring the SITL? I’m using QGroundControl v4.0.10 on Ubuntu-18.04 64bit. See images below.

Steps to reproduce:

  1. Obtain latest QGC (v4.0.10) and start it up
  2. Clone PX4/Firmware git repository
  3. checkout v1.10.1 of Firmware
  4. make px4_sitl gazebo_plane
  5. SITL connects to QGC. Note AMSL is 0m. (After enabling AMSL in the HUD settings)
  6. Kill the SITL, disconnect vehicle from QGC
  7. checkout v.1.9.0 of Firmware
  8. make px4_sitl gazebo_plane
  9. SITL connects to QGC. Note AMSL is 488.1m.

Any help is appreciated! Thank you!

Below is screenshot of QGC using PX4 firmware v1.10.1

And below is screenshot of QGC using PX4 firmware 1.9.0

Which SITL simulation are you using?

I’m using the Gazebo simulator in both cases.