From 1a97d222d067f9b2233f2ccd6e51753b460f42e5 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 13 Sep 2023 21:19:07 +1000 Subject: [PATCH] autotest: quadplane: fix race condition on RTL heartbeats --- Tools/autotest/quadplane.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/quadplane.py b/Tools/autotest/quadplane.py index 0247b8e441..c8b1c0f95e 100644 --- a/Tools/autotest/quadplane.py +++ b/Tools/autotest/quadplane.py @@ -466,7 +466,8 @@ class AutoTestQuadPlane(AutoTest): filename = "QuadPlaneDalbyRTL.txt" self.progress("Using %s to fly home" % filename) self.load_generic_mission(filename) - self.change_mode("RTL") + self.send_cmd_do_set_mode("RTL") + self.wait_mode('AUTO') self.wait_current_waypoint(4) self.wait_statustext('Land descend started') self.wait_statustext('Land final started', timeout=60)