autotest: add quiet option to drain_mav

This commit is contained in:
Peter Barker 2020-09-25 21:13:38 +10:00 committed by Peter Barker
parent c5e289efc3
commit 937d7bf335
1 changed files with 2 additions and 0 deletions

View File

@ -1674,6 +1674,8 @@ class AutoTest(ABC):
tstart = time.time() tstart = time.time()
while mav.recv_match(blocking=False) is not None: while mav.recv_match(blocking=False) is not None:
count += 1 count += 1
if quiet:
return
tdelta = time.time() - tstart tdelta = time.time() - tstart
if tdelta == 0: if tdelta == 0:
rate = "instantly" rate = "instantly"