Skip to content

Commit

Permalink
mavutil: do not consider MAV_AUTOPILOT_INVALID to be a vehicle heartbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Feb 1, 2023
1 parent 6b1e0c7 commit 67669c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mavutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ def probably_vehicle_heartbeat(self, msg):
mavlink.MAV_TYPE_ADSB,
mavlink.MAV_TYPE_ONBOARD_CONTROLLER):
return False
if msg.autopilot in frozenset([
mavlink.MAV_AUTOPILOT_INVALID
]):
return False
return True

def post_message(self, msg):
Expand Down

0 comments on commit 67669c3

Please sign in to comment.