autotest: augment arming test to attempt as CMD_INT

This commit is contained in:
Peter Barker 2023-05-29 11:04:58 +10:00 committed by Andrew Tridgell
parent 4fc5b5bdb6
commit 24441dbc00
1 changed files with 22 additions and 0 deletions

View File

@ -9598,6 +9598,28 @@ Also, ignores heartbeats not from our target system'''
self.progress("default disarm_vehicle() call")
self.disarm_vehicle()
self.start_subtest("Arm/disarm vehicle with COMMAND_INT")
self.run_cmd_int(
mavutil.mavlink.MAV_CMD_COMPONENT_ARM_DISARM,
1, # ARM
0,
0,
0,
0,
0,
0,
)
self.run_cmd_int(
mavutil.mavlink.MAV_CMD_COMPONENT_ARM_DISARM,
0, # DISARM
0,
0,
0,
0,
0,
0,
)
self.progress("arm with mavproxy")
mavproxy = self.start_mavproxy()
if not self.mavproxy_arm_vehicle(mavproxy):