Skip to content

Commit

Permalink
fence: filter according to selected vehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade authored and peterbarker committed Jan 19, 2024
1 parent 9491e31 commit 232eede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_fence.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def handle_sys_status(self, m):
self.console.set_status('Fence', 'FEN', row=0, fg='red')

def mavlink_packet(self, m):
if m.get_type() == 'SYS_STATUS':
if m.get_type() == 'SYS_STATUS' and self.message_is_from_primary_vehicle(m):
self.handle_sys_status(m)
super(FenceModule, self).mavlink_packet(m)

Expand Down

0 comments on commit 232eede

Please sign in to comment.