AP_Avoidance: correct ADSB vertical velocity conversion

This commit is contained in:
Iampete1 2021-08-29 19:29:42 +01:00 committed by Andrew Tridgell
parent 16c11fc4fa
commit 85e57a3bd8

View File

@ -272,9 +272,9 @@ void AP_Avoidance::get_adsb_samples()
MAV_COLLISION_SRC_ADSB, MAV_COLLISION_SRC_ADSB,
src_id, src_id,
loc, loc,
vehicle.info.heading/100.0f, vehicle.info.heading * 0.01,
vehicle.info.hor_velocity/100.0f, vehicle.info.hor_velocity * 0.01,
-vehicle.info.ver_velocity/1000.0f); // convert mm-up to m-down -vehicle.info.ver_velocity * 0.01); // convert cm-up to m-down
} }
} }