mavlink_receiver: fix DISTANCE_SENSOR covariance handling

This commit is contained in:
Oleg Kalachev
2019-02-22 16:23:41 +03:00
committed by Nuno Marques
parent b818b07df3
commit ec3f1fd5c2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -797,7 +797,7 @@ MavlinkReceiver::handle_message_distance_sensor(mavlink_message_t *msg)
d.type = dist_sensor.type;
d.id = MAV_DISTANCE_SENSOR_LASER;
d.orientation = dist_sensor.orientation;
d.covariance = dist_sensor.covariance;
d.covariance = dist_sensor.covariance * 1e-4f; // cm^2 to m^2
/// TODO Add sensor rotation according to MAV_SENSOR_ORIENTATION enum