mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
autotest: improve debug on parameter download failure
This commit is contained in:
parent
be7ae6fbc9
commit
6843d0e628
@ -4141,7 +4141,8 @@ switch value'''
|
|||||||
while True:
|
while True:
|
||||||
now = self.get_sim_time_cached()
|
now = self.get_sim_time_cached()
|
||||||
if now - tstart > 10:
|
if now - tstart > 10:
|
||||||
raise AutoTestTimeoutException("Failed to download parameters")
|
raise AutoTestTimeoutException("Failed to download parameters (have %s/%s)" %
|
||||||
|
(str(count), str(expected_count)))
|
||||||
m = self.mav.recv_match(type='PARAM_VALUE', blocking=True, timeout=1)
|
m = self.mav.recv_match(type='PARAM_VALUE', blocking=True, timeout=1)
|
||||||
if m is None:
|
if m is None:
|
||||||
raise AutoTestTimeoutException("tardy PARAM_VALUE (have %s/%s)" % (
|
raise AutoTestTimeoutException("tardy PARAM_VALUE (have %s/%s)" % (
|
||||||
|
Loading…
Reference in New Issue
Block a user