mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
autotest: flake8 compliance for antennatracker.py
This commit is contained in:
parent
726f54e37f
commit
4c56ac7eb3
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user