From 8639543cdd85f91d4cebc6636d33ba7f2f07a1f4 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Wed, 27 Sep 2023 08:21:06 +1000 Subject: [PATCH] Tools: Allow dead reckoning test longer to learn wind if no aspd sensor --- Tools/autotest/arduplane.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Tools/autotest/arduplane.py b/Tools/autotest/arduplane.py index c92a57f215..90d9971919 100644 --- a/Tools/autotest/arduplane.py +++ b/Tools/autotest/arduplane.py @@ -2188,10 +2188,14 @@ class AutoTestPlane(vehicle_test_suite.TestSuite): frame=mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT_INT, ) self.wait_location(loc, accuracy=100) - self.progress("Stewing") - self.delay_sim_time(20) + self.progress("Orbit with GPS and learn wind") + # allow longer to learn wind if there is no airspeed sensor + if disable_airspeed_sensor: + self.delay_sim_time(60) + else: + self.delay_sim_time(20) self.set_parameter("SIM_GPS_DISABLE", 1) - self.progress("Roasting") + self.progress("Continue orbit without GPS") self.delay_sim_time(20) self.change_mode("RTL") self.wait_distance_to_home(100, 200, timeout=200)