From e60032d956fee07b793395bf4d2d5c654fee8bc8 Mon Sep 17 00:00:00 2001 From: Stephen Dade Date: Tue, 3 Sep 2024 20:49:14 +1000 Subject: [PATCH] Link: Clean up sysid_outputs --- MAVProxy/modules/mavproxy_link.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/MAVProxy/modules/mavproxy_link.py b/MAVProxy/modules/mavproxy_link.py index ad199efaba..21fa932682 100644 --- a/MAVProxy/modules/mavproxy_link.py +++ b/MAVProxy/modules/mavproxy_link.py @@ -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: