From 8cac60ca8895b68d2bfd11d2cf20a46381f5ec2f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 26 Sep 2023 06:16:32 +1000 Subject: [PATCH] autotest: tweak test_mount_pitch win condition we only need to see the sample once when hold is 0 --- Tools/autotest/arducopter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tools/autotest/arducopter.py b/Tools/autotest/arducopter.py index a6d6f18f8c..80552c2a4b 100644 --- a/Tools/autotest/arducopter.py +++ b/Tools/autotest/arducopter.py @@ -4908,8 +4908,7 @@ class AutoTestCopter(AutoTest): (mount_pitch, despitch)) if success_start == 0: success_start = now - continue - if now - success_start > hold: + if now - success_start >= hold: self.progress("Mount pitch achieved") return