From 24441dbc00d38e862e8f030bf878fa78a68f4391 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 29 May 2023 11:04:58 +1000 Subject: [PATCH] autotest: augment arming test to attempt as CMD_INT --- Tools/autotest/common.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 6ee73f91f0..304a902384 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -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):