mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 19:07:34 +08:00
mavlink_receiver: fix DISTANCE_SENSOR covariance handling
This commit is contained in:
committed by
Nuno Marques
parent
b818b07df3
commit
ec3f1fd5c2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user