From 72919e959a72849b7906fecb74f27df15045b972 Mon Sep 17 00:00:00 2001 From: Stephen Dade Date: Tue, 3 Sep 2024 20:50:01 +1000 Subject: [PATCH] Asterix: remove set_secondary_vehicle_position --- MAVProxy/modules/mavproxy_asterix.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/MAVProxy/modules/mavproxy_asterix.py b/MAVProxy/modules/mavproxy_asterix.py index eca56d3be6..fc254df4ba 100644 --- a/MAVProxy/modules/mavproxy_asterix.py +++ b/MAVProxy/modules/mavproxy_asterix.py @@ -133,15 +133,6 @@ def stop_listener(self): self.sock = None self.tracks = {} - def set_secondary_vehicle_position(self, m): - '''store second vehicle position for filtering purposes''' - if m.get_type() != 'GLOBAL_POSITION_INT': - return - (lat, lon, heading) = (m.lat*1.0e-7, m.lon*1.0e-7, m.hdg*0.01) - if abs(lat) < 1.0e-3 and abs(lon) < 1.0e-3: - return - self.vehicle2_pos = VehiclePos(m) - def could_collide_hor(self, vpos, adsb_pkt): '''return true if vehicle could come within filter_dist_xy meters of adsb vehicle in timeout seconds''' margin = self.asterix_settings.filter_dist_xy