|
|
|
@ -2673,6 +2673,7 @@ class AutoTest(ABC):
@@ -2673,6 +2673,7 @@ class AutoTest(ABC):
|
|
|
|
|
################################################# |
|
|
|
|
def get_sim_time(self, timeout=60): |
|
|
|
|
"""Get SITL time in seconds.""" |
|
|
|
|
self.drain_mav() |
|
|
|
|
m = self.mav.recv_match(type='SYSTEM_TIME', blocking=True, timeout=timeout) |
|
|
|
|
if m is None: |
|
|
|
|
raise AutoTestTimeoutException("Did not get SYSTEM_TIME message after %f seconds" % timeout) |
|
|
|
|