Tools: correct run_cmd

This commit is contained in:
Pierre Kancir 2018-07-31 11:59:45 +02:00 committed by Peter Barker
parent facc254138
commit ef6db4da4a

View File

@ -447,9 +447,9 @@ class AutoTest(ABC):
p7) p7)
while True: while True:
m = self.mav.recv_match(type='COMMAND_ACK', blocking=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.command == command:
if m.result != mavutil.mavlink.MAV_RESULT_ACCEPTED: if m.result != want_result:
raise ValueError() raise ValueError()
break break