mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
Tools: correct run_cmd
This commit is contained in:
parent
facc254138
commit
ef6db4da4a
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user