mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
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:
committed by
Peter Barker
co-authored by
Claude Sonnet 4.6
parent
e8df6aa82f
commit
47de61e6f3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user