mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
autotest: increase time allowed for getting statustexts
frsky is run i9n a thread - and signficiant speedsup seem to adversely affect it
This commit is contained in:
parent
84adb059ed
commit
d2caebf39c
@ -11043,10 +11043,11 @@ switch value'''
|
|||||||
|
|
||||||
received_frsky_texts = []
|
received_frsky_texts = []
|
||||||
last_len_received_statustexts = 0
|
last_len_received_statustexts = 0
|
||||||
|
timeout = 7 * self.speedup # it can take a *long* time to get these messages down!
|
||||||
while True:
|
while True:
|
||||||
self.drain_mav()
|
self.drain_mav()
|
||||||
now = self.get_sim_time_cached()
|
now = self.get_sim_time_cached()
|
||||||
if now - tstart > 60: # it can take a *long* time to get these messages down!
|
if now - tstart > timeout:
|
||||||
raise NotAchievedException("Did not get statustext in time")
|
raise NotAchievedException("Did not get statustext in time")
|
||||||
frsky.update()
|
frsky.update()
|
||||||
data = frsky.get_data(0x5000) # no timestamping on this data, so we can't catch legitimate repeats.
|
data = frsky.get_data(0x5000) # no timestamping on this data, so we can't catch legitimate repeats.
|
||||||
|
Loading…
Reference in New Issue
Block a user