Altitude data from VFR_HUD messages

Hi everyone!

I am trying to get the barometer-based altitude data from the VFR_HUD messages

I am on ArduSub-4.5.5; Pixhawk 6C, and I am using mavros to access the VFR_HUD messages

Looks like the altitude variable is not populated, or perhaps it works only with a USBL setup?

I see that the AHRS2 messages report the correct altitude, but mavros doesn’t have an extension that lets me access it

Is there a specific reason ArduSub does not populate the VFR_HUD altitude variable?

Hi @ItsKalvik,

It does, but apparently the current stable firmware releases have a bug that only populates the value if the autopilot has a home position specified.

That has been fixed in the codebase, but the fix hasn’t yet made it into a versioned release.

Hey! That was easy!

Thanks for the help! @EliotBR @clyde