Skip to content

Commit

Permalink
Link: Clean up sysid_outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Sep 3, 2024
1 parent e1aaf6a commit e60032d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions MAVProxy/modules/mavproxy_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,22 +943,12 @@ def master_callback(self, m, master):
# see if it is handled by a specialised sysid connection
if sysid in self.mpstate.sysid_outputs:
self.mpstate.sysid_outputs[sysid].write(m.get_msgbuf())
if mtype == "GLOBAL_POSITION_INT":
for modname in 'map', 'asterix', 'NMEA', 'NMEA2':
mod = self.module(modname)
if mod is not None:
mod.set_secondary_vehicle_position(m)
return

if getattr(m, '_timestamp', None) is None:
master.post_message(m)
self.status.counters['MasterIn'][master.linknum] += 1

if mtype == 'GLOBAL_POSITION_INT':
# send GLOBAL_POSITION_INT to 2nd GCS for 2nd vehicle display
for sysid in self.mpstate.sysid_outputs:
self.mpstate.sysid_outputs[sysid].write(m.get_msgbuf())

if self.mpstate.settings.fwdpos:
for link in self.mpstate.mav_master:
if link != master:
Expand Down

0 comments on commit e60032d

Please sign in to comment.