Skip to content
Snippets Groups Projects
Commit 0b4751d0 authored by Oleg Kalachev's avatar Oleg Kalachev Committed by Nuno Marques
Browse files

simulator_mavlink: fix DISTANCE_SENSOR.covariance field handling

parent fbc8d01a
No related branches found
No related tags found
No related merge requests found
......@@ -1188,7 +1188,7 @@ int Simulator::publish_distance_topic(mavlink_distance_sensor_t *dist_mavlink)
dist.type = dist_mavlink->type;
dist.id = dist_mavlink->id;
dist.orientation = dist_mavlink->orientation;
dist.variance = dist_mavlink->covariance / 100.0f;
dist.variance = dist_mavlink->covariance * 1e-4f; // cm^2 to m^2
dist.signal_quality = -1;
int dist_multi;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment