Skip to content

Commit

Permalink
Asterix: remove set_secondary_vehicle_position
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Sep 3, 2024
1 parent a373f14 commit 72919e9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions MAVProxy/modules/mavproxy_asterix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72919e9

Please sign in to comment.