From 4fc5b5bdb6e168f9a1f0ae82e6dc79d1b5900e0e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 29 May 2023 10:57:28 +1000 Subject: [PATCH] autotest: augment yaw calibration test to attempt as CMD_INT --- Tools/autotest/common.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index bbf699e094..6ee73f91f0 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -9295,13 +9295,25 @@ Also, ignores heartbeats not from our target system''' 0, # param2 0, # param3 0, # param4 - 0, # param5 0, # param6 0 # param7 ) self.verify_parameter_values(wanted) + # run same command but as command_int: + self.zero_mag_offset_parameters() + self.run_cmd_int(mavutil.mavlink.MAV_CMD_FIXED_MAG_CAL_YAW, + math.degrees(ss.yaw), # param1 + 0, # param2 + 0, # param3 + 0, # param4 + 0, # param5 + 0, # param6 + 0 # param7 + ) + self.verify_parameter_values(wanted) + self.progress("Rebooting and making sure we could arm with these values") self.reboot_sitl() self.wait_ready_to_arm(timeout=60)