autotest: default to mavlink10

This commit is contained in:
Andrew Tridgell 2012-06-04 13:19:21 +10:00
parent 8d28cb51fc
commit 6260437818

View File

@ -103,11 +103,11 @@ parser.add_option("--skip", type='string', default='', help='list of steps to sk
parser.add_option("--list", action='store_true', default=False, help='list the available steps')
parser.add_option("--viewerip", default=None, help='IP address to send MAVLink and fg packets to')
parser.add_option("--experimental", default=False, action='store_true', help='enable experimental tests')
parser.add_option("--mav10", action='store_true', default=False, help="Use MAVLink protocol 1.0")
parser.add_option("--mav09", action='store_true', default=False, help="Use MAVLink protocol 0.9")
opts, args = parser.parse_args()
if opts.mav10 or os.getenv('MAVLINK10'):
if not opts.mav09:
os.environ['MAVLINK10'] = '1'
import mavlinkv10 as mavlink
else: