mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
autotest: explicltly dis/reconnect when customising commandline
We *know* the connection is going away, so wecan force the reconnect rather than waiting for mavtcp's reconnect logic to kick in
This commit is contained in:
parent
1f430daef6
commit
b6c4930b3a
@ -2517,11 +2517,13 @@ class AutoTest(ABC):
|
||||
set_streamrate_callback=None):
|
||||
'''customisations could be "--uartF=sim:nmea" '''
|
||||
self.contexts[-1].sitl_commandline_customised = True
|
||||
self.mav.close()
|
||||
self.stop_SITL()
|
||||
self.start_SITL(model=model,
|
||||
defaults_filepath=defaults_filepath,
|
||||
customisations=customisations,
|
||||
wipe=wipe)
|
||||
self.mav.do_connect()
|
||||
tstart = time.time()
|
||||
while True:
|
||||
if time.time() - tstart > 30:
|
||||
|
Loading…
Reference in New Issue
Block a user