diff --git a/Tools/autotest/vehicle_test_suite.py b/Tools/autotest/vehicle_test_suite.py index 6ff5fc7c342d5f..978483c70e20ca 100644 --- a/Tools/autotest/vehicle_test_suite.py +++ b/Tools/autotest/vehicle_test_suite.py @@ -8492,10 +8492,8 @@ def wait_gps_disable(self, position_horizontal=True, position_vertical=False, ti self.progress("Waiting for EKF not having bits %u" % not_required_value) last_print_time = 0 while timeout is None or self.get_sim_time_cached() < tstart + timeout: - m = self.mav.recv_match(type='EKF_STATUS_REPORT', blocking=True, timeout=timeout) - if m is None: - continue - current = m.flags + esr = self.assert_receive_message('EKF_STATUS_REPORT', timeout=timeout) + current = esr.flags if self.get_sim_time_cached() - last_print_time > 1: self.progress("Wait EKF.flags: not required:%u current:%u" % (not_required_value, current)) @@ -8503,6 +8501,7 @@ def wait_gps_disable(self, position_horizontal=True, position_vertical=False, ti if current & not_required_value != not_required_value: self.progress("GPS disable OK") return + self.progress(f"Last EKF_STATUS_REPORT: {esr}") raise AutoTestTimeoutException("Failed to get EKF.flags=%u disabled" % not_required_value) def wait_text(self, *args, **kwargs):