mirror of https://github.com/ArduPilot/ardupilot
autotest: get_sim_time_cached in NMEA output test to stop losing msgs
This commit is contained in:
parent
ce61f44505
commit
3cf1b9444f
|
@ -8487,7 +8487,7 @@ switch value'''
|
||||||
raise NotAchievedException("Did not receive GPS_RAW_INT")
|
raise NotAchievedException("Did not receive GPS_RAW_INT")
|
||||||
tstart = self.get_sim_time()
|
tstart = self.get_sim_time()
|
||||||
while True:
|
while True:
|
||||||
now = self.get_sim_time()
|
now = self.get_sim_time_cached()
|
||||||
if now - tstart > 20:
|
if now - tstart > 20:
|
||||||
raise NotAchievedException("NMEA output not updating?!")
|
raise NotAchievedException("NMEA output not updating?!")
|
||||||
gps2 = self.mav.recv_match(type="GPS2_RAW", blocking=True, timeout=1)
|
gps2 = self.mav.recv_match(type="GPS2_RAW", blocking=True, timeout=1)
|
||||||
|
|
Loading…
Reference in New Issue