mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
mavlink_messages: fill DISTANCE_SENSOR.covariance correctly
This commit is contained in:
committed by
Nuno Marques
parent
ec3f1fd5c2
commit
8ba7569852
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user