autotest: increase home tolerance

This commit is contained in:
Andy Piper 2023-07-09 08:23:17 +01:00 committed by Peter Hall
parent 076a0e848c
commit 07f89833c0

View File

@ -8450,11 +8450,11 @@ Also, ignores heartbeats not from our target system'''
start_loc = self.sitl_start_location()
self.progress("SITL start loc: %s" % str(start_loc))
delta = abs(orig_home.latitude * 1.0e-7 - start_loc.lat)
if delta > 0.000002:
if delta > 0.000006:
raise ValueError("homes differ in lat got=%f vs want=%f delta=%f" %
(orig_home.latitude * 1.0e-7, start_loc.lat, delta))
delta = abs(orig_home.longitude * 1.0e-7 - start_loc.lng)
if delta > 0.000002:
if delta > 0.000006:
raise ValueError("homes differ in lon got=%f vs want=%f delta=%f" %
(orig_home.longitude * 1.0e-7, start_loc.lng, delta))
if self.is_rover():