Skip to content

Commit 2e01c34

Browse files
peterbarkertridge
authored andcommitted
mavutil.py: default to using 'all' dialect in place of ardupilotmega
1 parent a5812a8 commit 2e01c34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mavutil.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
from pymavlink.generator.mavcrc import x25crc as x25crc
2020

2121
# adding these extra imports allows pymavlink to be used directly with pyinstaller
22-
# without having complex spec files. To allow for installs that don't have ardupilotmega
22+
# without having complex spec files. To allow for installs that don't have the "all" dialect
2323
# at all we avoid throwing an exception if it isn't installed
2424
try:
25-
from pymavlink.dialects.v10 import ardupilotmega
25+
from pymavlink.dialects.v10 import all
2626
except Exception:
2727
pass
2828

@@ -45,7 +45,7 @@
4545

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

5050
def mavlink10():
5151
'''return True if using MAVLink 1.0 or later'''

0 commit comments

Comments
 (0)