From 0d527aa313a19e1793c8175acd6b3949d3139214 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 2 Dec 2019 10:15:55 +1100 Subject: [PATCH] autotest: add test for tracker manual mode --- Tools/autotest/antennatracker.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Tools/autotest/antennatracker.py b/Tools/autotest/antennatracker.py index 5a40818069..d1363634f2 100644 --- a/Tools/autotest/antennatracker.py +++ b/Tools/autotest/antennatracker.py @@ -90,6 +90,14 @@ class AutoTestTracker(AutoTest): self.achieve_attitude(desyaw=0, despitch=0) self.achieve_attitude(desyaw=45, despitch=10) + def MANUAL(self): + self.change_mode(0) # "MANUAL" + for x in 1200, 1600: + self.set_rc(1, x); + self.set_rc(2, x); + self.wait_servo_channel_value(1, x) + self.wait_servo_channel_value(2, x) + def disabled_tests(self): return { "ArmFeatures": "See https://github.com/ArduPilot/ardupilot/issues/10652", @@ -102,5 +110,8 @@ class AutoTestTracker(AutoTest): ("GUIDED", "Test GUIDED mode", self.GUIDED), + ("MANUAL", + "Test MANUAL mode", + self.MANUAL), ]) return ret