Skip to content

Commit

Permalink
fix gnss height_ellipsoid_mm
Browse files Browse the repository at this point in the history
  • Loading branch information
PonomarevDA committed Dec 11, 2024
1 parent 7eb37b9 commit da76e22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/uavcan_communicator/converters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ void GpsRosToUavcan::ros_callback(IN_ROS_MSG_PTR in_ros_msg) {

out_uavcan_msg_.latitude_deg_1e8 = in_ros_msg->latitude * 1e8;
out_uavcan_msg_.longitude_deg_1e8 = in_ros_msg->longitude * 1e8;
out_uavcan_msg_.height_ellipsoid_mm = in_ros_msg->altitude * 1e3;
out_uavcan_msg_.height_msl_mm = in_ros_msg->altitude * 1e3;
broadcast();
}
Expand Down

0 comments on commit da76e22

Please sign in to comment.