GCS_MAVLink: use set_alt_m

This commit is contained in:
Peter Barker 2024-10-28 12:02:33 +09:00 committed by Peter Barker
parent 0077066ffb
commit 96bc2f5e57
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}