mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
Tools: correct run_cmd
This commit is contained in:
parent
facc254138
commit
ef6db4da4a
@ -447,9 +447,9 @@ class AutoTest(ABC):
|
||||
p7)
|
||||
while True:
|
||||
m = self.mav.recv_match(type='COMMAND_ACK', blocking=True)
|
||||
print("m: %s" % str(m))
|
||||
self.progress("ACK received: %s" % str(m))
|
||||
if m.command == command:
|
||||
if m.result != mavutil.mavlink.MAV_RESULT_ACCEPTED:
|
||||
if m.result != want_result:
|
||||
raise ValueError()
|
||||
break
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user