From 4324d66c138f2fe5d6deb87e5747941c56416b2f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 9 Feb 2021 14:33:55 +1100 Subject: [PATCH] autotest: loosen time constraint on mavlink messages in magcal Saw an error where we didn't get one of these in 5 seconds. That sounds like too much. But we'll loosen the constrain anyway --- Tools/autotest/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 8e1c4b0a14..2ca04232f5 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -5930,7 +5930,7 @@ Also, ignores heartbeats not from our target system''' while True: if self.get_sim_time_cached() - tstart > timeout: raise NotAchievedException("Cannot receive enough MAG_CAL_PROGRESS") - m = self.mav.recv_match(type=["MAG_CAL_PROGRESS", "MAG_CAL_REPORT"], blocking=True, timeout=5) + m = self.mav.recv_match(type=["MAG_CAL_PROGRESS", "MAG_CAL_REPORT"], blocking=True, timeout=10) if m.get_type() == "MAG_CAL_REPORT": if report_get[m.compass_id] == 0: self.progress("Report: %s" % str(m))