autotest: add send_debug_trap to send a mavlink trap to the autopilot
This commit is contained in:
parent
1650979a2b
commit
441f43103a
@ -1459,6 +1459,18 @@ class AutoTest(ABC):
|
||||
self.set_parameter("RNGFND1_SCALING", 12.12)
|
||||
self.set_parameter("RNGFND1_PIN", 0)
|
||||
|
||||
def send_debug_trap(self, timeout=6000):
|
||||
self.progress("Sending trap to autopilot")
|
||||
self.run_cmd(mavutil.mavlink.MAV_CMD_DEBUG_TRAP,
|
||||
32451, # magic number to trap
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
timeout=timeout)
|
||||
|
||||
def arm_vehicle(self, timeout=20):
|
||||
"""Arm vehicle with mavlink arm message."""
|
||||
self.progress("Arm motors with MAVLink cmd")
|
||||
|
Loading…
Reference in New Issue
Block a user