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

mavlink_messages: fill DISTANCE_SENSOR.covariance correctly

parent ec3f1fd5
No related branches found
No related tags found
No related merge requests found
...@@ -4195,7 +4195,7 @@ protected: ...@@ -4195,7 +4195,7 @@ protected:
msg.min_distance = dist_sensor.min_distance * 100.0f; /* m to cm */ msg.min_distance = dist_sensor.min_distance * 100.0f; /* m to cm */
msg.max_distance = dist_sensor.max_distance * 100.0f; /* m to cm */ msg.max_distance = dist_sensor.max_distance * 100.0f; /* m to cm */
msg.current_distance = dist_sensor.current_distance * 100.0f; /* m to cm */ msg.current_distance = dist_sensor.current_distance * 100.0f; /* m to cm */
msg.covariance = dist_sensor.covariance; msg.covariance = dist_sensor.covariance * 1e4f; // m^2 to cm^2
mavlink_msg_distance_sensor_send_struct(_mavlink->get_channel(), &msg); mavlink_msg_distance_sensor_send_struct(_mavlink->get_channel(), &msg);
......
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