Browse Source

autotest: loosen mag-percent-complete threshold to 95%

So 98% wasn't loose enough...
c415-sdk
Peter Barker 4 years ago committed by Peter Barker
parent
commit
3e882fcad8
  1. 5
      Tools/autotest/common.py

5
Tools/autotest/common.py

@ -4989,8 +4989,9 @@ Also, ignores heartbeats not from our target system'''
for param_name in param_names: for param_name in param_names:
self.progress("%s=%f" % (param_name, self.get_parameter(param_name))) self.progress("%s=%f" % (param_name, self.get_parameter(param_name)))
if m.cal_status == mavutil.mavlink.MAG_CAL_SUCCESS: if m.cal_status == mavutil.mavlink.MAG_CAL_SUCCESS:
if reached_pct[m.compass_id] < 98: threshold = 95
raise NotAchievedException("Mag calibration report SUCCESS without 100%% completion") if reached_pct[m.compass_id] < threshold:
raise NotAchievedException("Mag calibration report SUCCESS without >=%f%% completion (got %f%%)" % (threshold, reached_pct[m.compass_id]))
report_get[m.compass_id] = 1 report_get[m.compass_id] = 1
else: else:
raise NotAchievedException( raise NotAchievedException(

Loading…
Cancel
Save