diff --git a/Tools/autotest/arduplane.py b/Tools/autotest/arduplane.py index f0de1a488f..278f730673 100644 --- a/Tools/autotest/arduplane.py +++ b/Tools/autotest/arduplane.py @@ -21,6 +21,8 @@ from common import NotAchievedException from common import PreconditionFailedException from common import WaitModeTimeout from common import OldpymavlinkException +from common import Test + from pymavlink.rotmat import Vector3 from pysim import vehicleinfo @@ -1302,29 +1304,28 @@ class AutoTestPlane(AutoTest): '''Ensure Long-Failsafe works on GCS loss''' self.start_subtest("Test Failsafe: RTL") self.load_sample_mission() - self.set_parameter("RTL_AUTOLAND", 1) - self.change_mode("AUTO") - self.takeoff() self.set_parameters({ "FS_GCS_ENABL": 1, "FS_LONG_ACTN": 1, + "RTL_AUTOLAND": 1, + "SYSID_MYGCS": self.mav.source_system, }) + self.takeoff() + self.change_mode('LOITER') self.progress("Disconnecting GCS") self.set_heartbeat_rate(0) - self.wait_mode("RTL", timeout=5) + self.wait_mode("RTL", timeout=10) self.set_heartbeat_rate(self.speedup) self.end_subtest("Completed RTL Failsafe test") self.start_subtest("Test Failsafe: FBWA Glide") self.set_parameters({ - "RTL_AUTOLAND": 1, "FS_LONG_ACTN": 2, }) - self.change_mode("AUTO") - self.takeoff() + self.change_mode('AUTO') self.progress("Disconnecting GCS") self.set_heartbeat_rate(0) - self.wait_mode("FBWA", timeout=5) + self.wait_mode("FBWA", timeout=10) self.set_heartbeat_rate(self.speedup) self.end_subtest("Completed FBWA Failsafe test") @@ -4705,7 +4706,7 @@ class AutoTestPlane(AutoTest): self.AltResetBadGPS, self.AirspeedCal, self.MissionJumpTags, - self.GCSFailsafe, + Test(self.GCSFailsafe, speedup=8), self.SDCardWPTest, self.NoArmWithoutMissionItems, self.MODE_SWITCH_RESET,