autotest: make sub altitude test more reliable

momentum + stopping point could both explain unreliability
This commit is contained in:
Peter Barker 2020-01-16 11:53:47 +11:00 committed by Peter Barker
parent 7cd21d3a3a
commit 6c8975eae3
1 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,9 @@ class AutoTestSub(AutoTest):
self.wait_altitude(alt_min=-5, alt_max=-4)
self.set_rc(Joystick.Throttle, 1500)
# let the vehicle settle (momentum / stopping point shenanigans....)
self.delay_sim_time(2)
self.watch_altitude_maintained()
self.disarm_vehicle()