Autotest: common: add wait_heartbeat to change_mode to clean up msg and give time to status to update

This commit is contained in:
Pierre Kancir 2020-08-20 15:27:02 +02:00 committed by Peter Barker
parent f73e4c0071
commit 8b92af732a

View File

@ -3195,6 +3195,7 @@ class AutoTest(ABC):
def change_mode(self, mode, timeout=60):
'''change vehicle flightmode'''
self.wait_heartbeat()
self.progress("Changing mode to %s" % mode)
self.mavproxy.send('mode %s\n' % mode)
tstart = self.get_sim_time()