mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 07:28:29 -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
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
'''
|
||||||
|
Test AntennaTracker vehicle in SITL
|
||||||
|
|
||||||
|
AP_FLAKE8_CLEAN
|
||||||
|
|
||||||
|
'''
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import math
|
import math
|
||||||
@ -16,6 +23,7 @@ from common import NotAchievedException
|
|||||||
testdir = os.path.dirname(os.path.realpath(__file__))
|
testdir = os.path.dirname(os.path.realpath(__file__))
|
||||||
SITL_START_LOCATION = mavutil.location(-27.274439, 151.290064, 343, 8.7)
|
SITL_START_LOCATION = mavutil.location(-27.274439, 151.290064, 343, 8.7)
|
||||||
|
|
||||||
|
|
||||||
class AutoTestTracker(AutoTest):
|
class AutoTestTracker(AutoTest):
|
||||||
|
|
||||||
def log_name(self):
|
def log_name(self):
|
||||||
@ -103,7 +111,7 @@ class AutoTestTracker(AutoTest):
|
|||||||
self.change_mode(0) # "MANUAL"
|
self.change_mode(0) # "MANUAL"
|
||||||
for chan in 1, 2:
|
for chan in 1, 2:
|
||||||
for pwm in 1200, 1600, 1367:
|
for pwm in 1200, 1600, 1367:
|
||||||
self.set_rc(chan, pwm);
|
self.set_rc(chan, pwm)
|
||||||
self.wait_servo_channel_value(chan, pwm)
|
self.wait_servo_channel_value(chan, pwm)
|
||||||
|
|
||||||
def SERVOTEST(self):
|
def SERVOTEST(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user