autotest: fixed rover test

This commit is contained in:
Andrew Tridgell 2015-04-30 18:45:38 +10:00
parent 1cbbf1ab9e
commit 9204cab7d5
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ def drive_APMrover2(viewerip=None, map=False):
HOME.lat, HOME.lng, HOME.alt, HOME.heading)
sil = util.start_SIL('APMrover2', wipe=True)
mavproxy = util.start_MAVProxy_SIL('APMrover2', options=options, synthetic_clock=True)
mavproxy = util.start_MAVProxy_SIL('APMrover2', options=options)
runsim = pexpect.spawn(sim_cmd, logfile=sys.stdout, timeout=10)
runsim.delaybeforesend = 0
@ -106,7 +106,7 @@ def drive_APMrover2(viewerip=None, map=False):
util.pexpect_close(runsim)
sil = util.start_SIL('APMrover2')
mavproxy = util.start_MAVProxy_SIL('APMrover2', options=options, synthetic_clock=True)
mavproxy = util.start_MAVProxy_SIL('APMrover2', options=options)
mavproxy.expect('Logging to (\S+)')
logfile = mavproxy.match.group(1)
print("LOGFILE %s" % logfile)