Tools: autotest: add timeout to wait_ekf_flags waiting for EKF_STATUS_REPORT
This commit is contained in:
parent
18a211f3e6
commit
265d8d62cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user