autotest: Fix the climb-before-turn test

This commit is contained in:
Stavros Korokithakis 2021-03-16 15:07:46 +02:00 committed by Andrew Tridgell
parent 717b06d635
commit f6fc6d22da

View File

@ -1650,7 +1650,7 @@ class AutoTestPlane(AutoTest):
self.wait_ready_to_arm() self.wait_ready_to_arm()
self.set_parameter("FLIGHT_OPTIONS", 0) self.set_parameter("FLIGHT_OPTIONS", 0)
self.set_parameter("ALT_HOLD_RTL", 8000) self.set_parameter("ALT_HOLD_RTL", 8000)
takeoff_alt = 40 takeoff_alt = 10
self.takeoff(alt=takeoff_alt) self.takeoff(alt=takeoff_alt)
self.change_mode("CRUISE") self.change_mode("CRUISE")
self.wait_distance_to_home(500, 1000, timeout=60) self.wait_distance_to_home(500, 1000, timeout=60)