Tools: autotest for mount sets MNT_RC_RATE

This commit is contained in:
Randy Mackay 2022-06-17 08:52:54 +09:00
parent 5add147c8d
commit 1a5216aaee
1 changed files with 2 additions and 2 deletions

View File

@ -4751,7 +4751,7 @@ class AutoTestCopter(AutoTest):
self.set_rc(12, 1500)
self.progress("Testing RC rate control")
self.set_parameter('MNT_JSTICK_SPD', 10)
self.set_parameter('MNT_RC_RATE', 10)
self.test_mount_pitch(0, 1, mavutil.mavlink.MAV_MOUNT_MODE_RC_TARGETING)
self.set_rc(12, 1300)
self.test_mount_pitch(-5, 1, mavutil.mavlink.MAV_MOUNT_MODE_RC_TARGETING)
@ -4766,7 +4766,7 @@ class AutoTestCopter(AutoTest):
self.test_mount_pitch(5, 1, mavutil.mavlink.MAV_MOUNT_MODE_RC_TARGETING)
self.progress("Reverting to angle mode")
self.set_parameter('MNT_JSTICK_SPD', 0)
self.set_parameter('MNT_RC_RATE', 0)
self.set_rc(12, 1500)
self.test_mount_pitch(0, 0.1, mavutil.mavlink.MAV_MOUNT_MODE_RC_TARGETING)