Skip to content
Snippets Groups Projects
Commit f5a844d4 authored by Andreas Antener's avatar Andreas Antener
Browse files

added field for pressure altitude to global position

parent d9c33235
No related branches found
No related tags found
No related merge requests found
......@@ -18,3 +18,4 @@ float32 epv # Standard deviation of position vertically
float32 terrain_alt # Terrain altitude in m, WGS84
bool terrain_alt_valid # Terrain altitude estimate is valid
bool dead_reckoning # True if this position is estimated through dead-reckoning
float32 pressure_alt # Pressure altitude
......@@ -2602,7 +2602,7 @@ protected:
if (updated) {
mavlink_altitude_t msg;
msg.altitude_monotonic = global_pos.alt;
msg.altitude_monotonic = global_pos.pressure_alt;
msg.altitude_amsl = global_pos.alt;
msg.altitude_local = -local_pos.z;
msg.altitude_relative = home.alt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment