AntennaTracker: fix GLOBAL_POSITION_INT alt units in stationary mode

Location.alt is in centimetres but the GLOBAL_POSITION_INT alt field
requires millimetres. The stationary-tracker path was missing the * 10
conversion that the base class GCS_MAVLINK::send_global_position_int()
applies correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Peter Barker
2026-03-03 09:00:15 +11:00
committed by Peter Barker
co-authored by Claude Sonnet 4.6
parent e8df6aa82f
commit 47de61e6f3
+1 -1
View File
@@ -558,7 +558,7 @@ void GCS_MAVLINK_Tracker::send_global_position_int()
AP_HAL::millis(),
tracker.current_loc.lat, // in 1E7 degrees
tracker.current_loc.lng, // in 1E7 degrees
tracker.current_loc.alt, // millimeters above ground/sea level
tracker.current_loc.alt * 10, // millimeters above ground/sea level
0, // millimeters above home
0, // X speed cm/s (+ve North)
0, // Y speed cm/s (+ve East)