From 96bc2f5e572d07b9e23d115ac30e7458b3f84311 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 28 Oct 2024 12:02:33 +0900 Subject: [PATCH] GCS_MAVLink: use set_alt_m --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 743b8b7e61..9a1528b9dc 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -5058,7 +5058,7 @@ bool GCS_MAVLINK::location_from_command_t(const mavlink_command_int_t &in, Locat out.lat = in.x; out.lng = in.y; - out.set_alt_cm(int32_t(in.z * 100), frame); + out.set_alt_m(in.z, frame); return true; }