autotest: pass calibration test even if 98% complete before success

This commit is contained in:
bugobliterator 2020-09-06 13:41:28 +05:30 committed by Peter Barker
parent eab127ffa3
commit d997ca8779

View File

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