autotest: ensure we test SET_ROI_SYSID as both command-long and command-int

This commit is contained in:
Peter Barker 2023-07-21 09:23:46 +10:00 committed by Andrew Tridgell
parent b4cd3a4d26
commit 8b88dcf336

View File

@ -5213,6 +5213,11 @@ class AutoTestCopter(AutoTest):
)
self.test_mount_pitch(-89, 5, mavutil.mavlink.MAV_MOUNT_MODE_SYSID_TARGET, hold=2)
self.run_cmd(mavutil.mavlink.MAV_CMD_DO_SET_ROI_NONE)
self.run_cmd_int(
mavutil.mavlink.MAV_CMD_DO_SET_ROI_SYSID,
p1=self.mav.source_system,
)
self.mav.mav.global_position_int_send(
0, # time boot ms
int(roi_lat * 1e7),