autotest: loosen constrain on proximity distance message

the floating/double changes appear to have cause this to start to flap
This commit is contained in:
Peter Barker 2023-09-12 15:43:53 +10:00 committed by Peter Barker
parent fc924857d3
commit 909401b15f
1 changed files with 2 additions and 1 deletions

View File

@ -7137,6 +7137,7 @@ class AutoTestCopter(AutoTest):
failed = False
wants = []
gots = []
epsilon = 20
while True:
if self.get_sim_time_cached() - tstart > 30:
raise AutoTestTimeoutException("Failed to get distances")
@ -7149,7 +7150,7 @@ class AutoTestCopter(AutoTest):
want = expected_distances_copy[m.orientation]
wants.append(want)
gots.append(got)
if abs(want - got) > 5:
if abs(want - got) > epsilon:
failed = True
del expected_distances_copy[m.orientation]
if failed: