mirror of https://github.com/ArduPilot/ardupilot
AP_Avoidance: correct ADSB vertical velocity conversion
This commit is contained in:
parent
16c11fc4fa
commit
85e57a3bd8
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue