diff --git a/libraries/AP_Avoidance/AP_Avoidance.cpp b/libraries/AP_Avoidance/AP_Avoidance.cpp index 0ee80b4fa8..7f167b0241 100644 --- a/libraries/AP_Avoidance/AP_Avoidance.cpp +++ b/libraries/AP_Avoidance/AP_Avoidance.cpp @@ -272,9 +272,9 @@ void AP_Avoidance::get_adsb_samples() MAV_COLLISION_SRC_ADSB, src_id, loc, - vehicle.info.heading/100.0f, - vehicle.info.hor_velocity/100.0f, - -vehicle.info.ver_velocity/1000.0f); // convert mm-up to m-down + vehicle.info.heading * 0.01, + vehicle.info.hor_velocity * 0.01, + -vehicle.info.ver_velocity * 0.01); // convert cm-up to m-down } }