Skip to content

Commit

Permalink
mavutil.py: default to using 'all' dialect in place of ardupilotmega
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Mar 15, 2022
1 parent 2af15b1 commit bd65f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mavutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# at all we avoid throwing an exception if it isn't installed
try:
import json
from pymavlink.dialects.v10 import ardupilotmega
from pymavlink.dialects.v10 import all
except Exception:
pass

Expand All @@ -44,7 +44,7 @@

# Use a globally-set MAVLink dialect if one has been specified as an environment variable.
if not 'MAVLINK_DIALECT' in os.environ:
os.environ['MAVLINK_DIALECT'] = 'ardupilotmega'
os.environ['MAVLINK_DIALECT'] = 'all'

def mavlink10():
'''return True if using MAVLink 1.0 or later'''
Expand Down

0 comments on commit bd65f8d

Please sign in to comment.