Swapping MP HUD Altitude with ASL Instead of Relative

Hello,

Does anyone know how to replace the Mission Planner HUD altitude bug to display “ASL” altitude instead of “Relative”? I need to treat my aircraft operation as if it were a manned aircraft, using the HUD altitude display as the traditional MSL readout (ASL in the mission planner documentation). I have limited to no experience coding, but could probably figure it out in Visual Studio if given some proper direction.

With my limited understanding of the MP/Ardupilot back-end, the alt and altasl in the quick tab seem to have the same refresh rate, so I’m assuming they are being pulled from a similar telemetry set that could potentially be interchangeable on the HUD display given the proper code reference. Am I way off?

MP Version: 1.3.80

Thanks,

In FlightData.Designer.cs look for this line
this.hud1.DataBindings.Add(new System.Windows.Forms.Binding("alt", this.bindingSourceHud, "alt", true));
and replace with this
this.hud1.DataBindings.Add(new System.Windows.Forms.Binding("alt", this.bindingSourceHud, "altasl", true));

1 Like

Great, thank you so much!

Did you by chance get this to work? I am a total noob in coding so have zero clue how to code to make the change. It would be interested in knowing if this worked or not before trying to figure it out. Its sad Mission Planner does not do this to start as majority of major applications will be flown using a MSL altitude vs AGL.

Hey, yeah, I got it working perfectly! I totally agree that we are going to be players in the airspace, which means that we need to have the same information and speak the same language. I created a custom version of mission planner that addresses all of these airspace integration issues so that we can begin working with ATC and other air traffic.

On the HUD you can right click to select “User items”. You can then select AltASL to be added to the HUD. It’s not as elegant as being able to change the main HUD display but it works in a pinch.