autotest: reset mission on takeoff for quadplanes

This commit is contained in:
Andrew Tridgell 2022-05-14 16:02:17 +10:00 committed by Randy Mackay
parent 6bf9556612
commit 4aaa0ce6b2
2 changed files with 2 additions and 0 deletions

View File

@ -6542,6 +6542,7 @@ Also, ignores heartbeats not from our target system'''
try:
self.check_rc_defaults()
self.change_mode(self.default_mode())
self.set_current_waypoint(0, check_afterwards=False)
self.drain_mav()
self.drain_all_pexpects()

View File

@ -446,6 +446,7 @@ class AutoTestQuadPlane(AutoTest):
def takeoff(self, height, mode):
"""climb to specified height and set throttle to 1500"""
self.set_current_waypoint(0, check_afterwards=False)
self.change_mode(mode)
self.wait_ready_to_arm()
self.arm_vehicle()