mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
autotest: increase time allowed for mission download
we don't need to be particularly tight on timing here
This commit is contained in:
parent
b69a75098f
commit
ccc25cb8d7
@ -7418,13 +7418,16 @@ Also, ignores heartbeats not from our target system'''
|
||||
tstart = self.get_sim_time_cached()
|
||||
remaining_to_receive = set(range(0, m.count))
|
||||
next_to_request = 0
|
||||
timeout = m.count / 10.0
|
||||
timeout = m.count
|
||||
timeout *= self.speedup / 10.0
|
||||
timeout += 10
|
||||
while True:
|
||||
if self.get_sim_time_cached() - tstart > timeout:
|
||||
raise NotAchievedException("timeout downloading type=%s" %
|
||||
(mavutil.mavlink.enums["MAV_MISSION_TYPE"][mission_type].name))
|
||||
delta_t = self.get_sim_time_cached() - tstart
|
||||
if delta_t > timeout:
|
||||
raise NotAchievedException(
|
||||
"timeout downloading type=%s after %s seconds of %s allowed" %
|
||||
(mavutil.mavlink.enums["MAV_MISSION_TYPE"][mission_type].name,
|
||||
delta_t, timeout))
|
||||
if len(remaining_to_receive) == 0:
|
||||
self.progress("All received")
|
||||
return items
|
||||
|
Loading…
Reference in New Issue
Block a user