mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
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:
parent
aaac6212ab
commit
0a7f2bcc44
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import util, pexpect, sys, time, math, shutil, os
|
import util, pexpect, sys, time, math, shutil, os
|
||||||
from common import *
|
from common import *
|
||||||
import mavutil, mavwp
|
import mavutil, mavwp, random
|
||||||
|
|
||||||
# get location of scripts
|
# get location of scripts
|
||||||
testdir=os.path.dirname(os.path.realpath(__file__))
|
testdir=os.path.dirname(os.path.realpath(__file__))
|
||||||
@ -247,6 +247,7 @@ def fly_ArduCopter(viewerip=None):
|
|||||||
mavproxy.expect('Received [0-9]+ parameters')
|
mavproxy.expect('Received [0-9]+ parameters')
|
||||||
|
|
||||||
# setup test 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.send("param load %s/ArduCopter.parm\n" % testdir)
|
||||||
mavproxy.expect('Loaded [0-9]+ parameters')
|
mavproxy.expect('Loaded [0-9]+ parameters')
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import util, pexpect, sys, time, math, shutil, os
|
import util, pexpect, sys, time, math, shutil, os
|
||||||
from common import *
|
from common import *
|
||||||
import mavutil
|
import mavutil, random
|
||||||
|
|
||||||
# get location of scripts
|
# get location of scripts
|
||||||
testdir=os.path.dirname(os.path.realpath(__file__))
|
testdir=os.path.dirname(os.path.realpath(__file__))
|
||||||
@ -206,6 +206,7 @@ def fly_ArduPlane(viewerip=None):
|
|||||||
mavproxy.expect('Received [0-9]+ parameters')
|
mavproxy.expect('Received [0-9]+ parameters')
|
||||||
|
|
||||||
# setup test 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.send("param load %s/ArduPlane.parm\n" % testdir)
|
||||||
mavproxy.expect('Loaded [0-9]+ parameters')
|
mavproxy.expect('Loaded [0-9]+ parameters')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user