Tools: autotest: add timeout to wait_ekf_flags waiting for EKF_STATUS_REPORT

This commit is contained in:
Peter Barker 2019-03-26 17:20:24 +11:00 committed by Peter Barker
parent 18a211f3e6
commit 265d8d62cd

View File

@ -1687,7 +1687,9 @@ class AutoTest(ABC):
last_print_time = 0
tstart = self.get_sim_time()
while timeout is None or self.get_sim_time_cached() < tstart + timeout:
m = self.mav.recv_match(type='EKF_STATUS_REPORT', blocking=True)
m = self.mav.recv_match(type='EKF_STATUS_REPORT', blocking=True, timeout=timeout)
if m is None:
continue
current = m.flags
errors = current & error_bits
everything_ok = (errors == 0 and