mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Merge pull request #3284 from ASM3/feature/add_GPS_ellipsoid_alt_info
GPS: Add height above the ellipsoid info
This commit is contained in:
commit
ece822d0e7
@ -3,6 +3,7 @@ uint64 timestamp_position # Timestamp for position information
|
||||
int32 lat # Latitude in 1E-7 degrees
|
||||
int32 lon # Longitude in 1E-7 degrees
|
||||
int32 alt # Altitude in 1E-3 meters (millimeters) above MSL
|
||||
int32 alt_ellipsoid # Altitude in 1E-3 meters (millimeters) above Ellipsoid
|
||||
|
||||
uint64 timestamp_variance
|
||||
float32 s_variance_m_s # speed accuracy estimate m/s
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user