Skip to content

Commit 8040e98

Browse files
committed
bug: standardized height in mavlink/ROS to be msl, not ellipsoid
1 parent 4be59f5 commit 8040e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comms/mavlink/mavlink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void Mavlink::send_gnss(uint8_t system_id, const GNSSData & data)
154154
data.num_sat,
155155
(double)data.lat * 1e-7, // Convert 100's of nanodegs into deg (DDS format)
156156
(double)data.lon * 1e-7, // Convert 100's of nanodegs into deg (DDS format)
157-
(float)data.height_ellipsoid * 1e-3, // mm to m
157+
(float)data.height_msl * 1e-3, // mm to m
158158
(float)data.vel_n * 1e-3, // mm/s to m/s
159159
(float)data.vel_e * 1e-3, // mm/s to m/s
160160
(float)data.vel_d * 1e-3, // mm/s to m/s

0 commit comments

Comments
 (0)