mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 14:53:35 +08:00
GPS: Add height above the ellipsoid info
Modification of the GPS message, add height above the ellipsoid info.
This commit is contained in:
@@ -874,6 +874,7 @@ UBX::payload_rx_done(void)
|
||||
_gps_position->alt = _buf.payload_rx_nav_posllh.hMSL;
|
||||
_gps_position->eph = (float)_buf.payload_rx_nav_posllh.hAcc * 1e-3f; // from mm to m
|
||||
_gps_position->epv = (float)_buf.payload_rx_nav_posllh.vAcc * 1e-3f; // from mm to m
|
||||
_gps_position->alt_ellipsoid = _buf.payload_rx_nav_posllh.height;
|
||||
|
||||
_gps_position->timestamp_position = hrt_absolute_time();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user