autotest: use random MAVLink system IDs

this allows more than one test to be viewed at the same time in
qgroundcontrol
This commit is contained in:
Andrew Tridgell 2011-12-03 07:55:03 +11:00
parent aaac6212ab
commit 0a7f2bcc44
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
import util, pexpect, sys, time, math, shutil, os
from common import *
import mavutil, mavwp
import mavutil, mavwp, random
# get location of scripts
testdir=os.path.dirname(os.path.realpath(__file__))
@ -247,6 +247,7 @@ def fly_ArduCopter(viewerip=None):
mavproxy.expect('Received [0-9]+ parameters')
# setup test parameters
mavproxy.send('param set SYSID_THISMAV %u\n' % random.randint(100, 200))
mavproxy.send("param load %s/ArduCopter.parm\n" % testdir)
mavproxy.expect('Loaded [0-9]+ parameters')

View File

@ -2,7 +2,7 @@
import util, pexpect, sys, time, math, shutil, os
from common import *
import mavutil
import mavutil, random
# get location of scripts
testdir=os.path.dirname(os.path.realpath(__file__))
@ -206,6 +206,7 @@ def fly_ArduPlane(viewerip=None):
mavproxy.expect('Received [0-9]+ parameters')
# setup test parameters
mavproxy.send('param set SYSID_THISMAV %u\n' % random.randint(100, 200))
mavproxy.send("param load %s/ArduPlane.parm\n" % testdir)
mavproxy.expect('Loaded [0-9]+ parameters')