From 3963f1b114b1823fa7647f7ddaf2ac21817232e3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 20 Oct 2023 21:03:18 +1100 Subject: [PATCH] autotest: allow reboot_sitl to specify max startup loc dist useful if your vehicle is on a ship --- Tools/autotest/vehicle_test_suite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/vehicle_test_suite.py b/Tools/autotest/vehicle_test_suite.py index 0340fed1fa..4d14412fde 100644 --- a/Tools/autotest/vehicle_test_suite.py +++ b/Tools/autotest/vehicle_test_suite.py @@ -2359,6 +2359,7 @@ class TestSuite(ABC): force=False, check_position=True, mark_context=True, + startup_location_dist_max=1, ): """Reboot SITL instance and wait for it to reconnect.""" if self.armed() and not force: @@ -2367,7 +2368,7 @@ class TestSuite(ABC): self.reboot_sitl_mav(required_bootcount=required_bootcount, force=force) self.do_heartbeats(force=True) if check_position and self.frame != 'sailboat': # sailboats drift with wind! - self.assert_simstate_location_is_at_startup_location() + self.assert_simstate_location_is_at_startup_location(dist_max=startup_location_dist_max) if mark_context: self.context_get().reboot_sitl_was_done = True