From c0dc3636d2abf8fd08e4b35c1f66719e93777bab Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 4 May 2023 08:26:45 +1000 Subject: [PATCH] autotest: stop vehicle from entering RTL instantly when it enters auto Test failure because we instantly reached the waypoint and did the RTL - so the change-mode-to-auto never saw us in auto mode --- Tools/autotest/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 4fc5a199f1..f25f375e81 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -7333,7 +7333,7 @@ class AutoTest(ABC): '''ensure we can't arm in auto mode without mission items present''' # load a trivial mission items = [] - items.append((mavutil.mavlink.MAV_CMD_NAV_WAYPOINT, 0, 0, 20000),) + items.append((mavutil.mavlink.MAV_CMD_NAV_WAYPOINT, 1000, 0, 20000),) items.append((mavutil.mavlink.MAV_CMD_NAV_RETURN_TO_LAUNCH, 0, 0, 0)) self.upload_simple_relhome_mission(items)