Skip to content

Commit

Permalink
map: check events in idle loop
Browse files Browse the repository at this point in the history
currently we only check for events when we receive mavlink packets.

That's a problem for the right-click menu option "Google Maps Link", because often when you want that option you are not actually getting packets from the vehicle....

Process packets in the idle loop as well as after receiving a mavlink packet.
  • Loading branch information
peterbarker committed May 9, 2024
1 parent c29e370 commit ef03bb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MAVProxy/modules/mavproxy_map/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,9 @@ def idle_task(self):
if not self.map.is_alive():
self.needs_unloading = True

# check for any events from the map
self.map.check_events()

def create_vehicle_icon(self, name, colour, follow=False, vehicle_type=None):
'''add a vehicle to the map'''
from MAVProxy.modules.mavproxy_map import mp_slipmap
Expand Down

0 comments on commit ef03bb7

Please sign in to comment.