mirror of https://github.com/ArduPilot/ardupilot
autotest: tweak test_mount_pitch win condition
we only need to see the sample once when hold is 0
This commit is contained in:
parent
429dbefade
commit
8cac60ca88
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue