AP_Avoidance: get_location becomes a method on adsb rather than a abds vehicle

This commit is contained in:
Peter Barker 2016-07-22 14:53:03 +10:00 committed by Randy Mackay
parent b5c1019aac
commit 89fbf23012
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ void AP_Avoidance::get_adsb_samples()
AP_ADSB::adsb_vehicle_t vehicle;
while (_adsb.next_sample(vehicle)) {
uint32_t src_id = src_id_for_adsb_vehicle(vehicle);
Location loc = vehicle.get_location();
Location loc = _adsb.get_location(vehicle);
add_obstacle(vehicle.last_update_ms,
MAV_COLLISION_SRC_ADSB,
src_id,