mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
Autotest: common: add wait_heartbeat to change_mode to clean up msg and give time to status to update
This commit is contained in:
parent
f73e4c0071
commit
8b92af732a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user