From 4c56ac7eb33426040abad7f995810d77c1b556d4 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 12 Feb 2021 09:47:10 +1100 Subject: [PATCH] autotest: flake8 compliance for antennatracker.py --- Tools/autotest/antennatracker.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/antennatracker.py b/Tools/autotest/antennatracker.py index 488c07d474..f8c68a3e47 100644 --- a/Tools/autotest/antennatracker.py +++ b/Tools/autotest/antennatracker.py @@ -1,5 +1,12 @@ #!/usr/bin/env python +''' +Test AntennaTracker vehicle in SITL + +AP_FLAKE8_CLEAN + +''' + from __future__ import print_function import math @@ -16,13 +23,14 @@ from common import NotAchievedException testdir = os.path.dirname(os.path.realpath(__file__)) SITL_START_LOCATION = mavutil.location(-27.274439, 151.290064, 343, 8.7) + class AutoTestTracker(AutoTest): def log_name(self): return "AntennaTracker" def test_filepath(self): - return os.path.realpath(__file__) + return os.path.realpath(__file__) def sitl_start_location(self): return SITL_START_LOCATION @@ -103,7 +111,7 @@ class AutoTestTracker(AutoTest): self.change_mode(0) # "MANUAL" for chan in 1, 2: for pwm in 1200, 1600, 1367: - self.set_rc(chan, pwm); + self.set_rc(chan, pwm) self.wait_servo_channel_value(chan, pwm) def SERVOTEST(self):