From 252b1660998e01fc7f21ee0ce98d8b626e5abdac Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 11 Jan 2021 22:42:04 +1100 Subject: [PATCH] autotest: reboot after Copter gyrofft test Really weird things happen if you switch from EKF2 to EKF10 - like your home position being set but your origin not! --- Tools/autotest/arducopter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index 5bfcfe1fe6..7e9a92a7f5 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -4351,6 +4351,10 @@ class AutoTestCopter(AutoTest): self.context_pop() + # need a final reboot because weird things happen to your + # vehicle state when switching back from EKF type 10! + self.reboot_sitl() + if ex is not None: raise ex