Browse Source

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
c415-sdk
Peter Barker 4 years ago committed by Peter Barker
parent
commit
4324d66c13
  1. 2
      Tools/autotest/common.py

2
Tools/autotest/common.py

@ -5930,7 +5930,7 @@ Also, ignores heartbeats not from our target system''' @@ -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))

Loading…
Cancel
Save