From e466333a79cc3e47d74451fee66f63b19c110249 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 28 Nov 2012 16:31:38 +1100 Subject: [PATCH] autotest: cope with rover already being close to home in RTL --- Tools/autotest/apmrover2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/apmrover2.py b/Tools/autotest/apmrover2.py index 60101e9ab0..3304d532d0 100644 --- a/Tools/autotest/apmrover2.py +++ b/Tools/autotest/apmrover2.py @@ -37,9 +37,9 @@ def drive_RTL(mavproxy, mav): '''drive to home''' print("Driving home in RTL") mavproxy.send('switch 3\n') - wait_mode(mav, 'RTL') if not wait_location(mav, homeloc, accuracy=22, timeout=90): return False + mavproxy.expect('Reached home') print("RTL Complete") return True