2019-02-20 19:07:53 -04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
from __future__ import print_function
|
|
|
|
import os
|
|
|
|
from pymavlink import mavutil
|
|
|
|
|
|
|
|
from common import AutoTest
|
|
|
|
|
|
|
|
# get location of scripts
|
|
|
|
testdir = os.path.dirname(os.path.realpath(__file__))
|
2019-03-09 00:20:36 -04:00
|
|
|
SITL_START_LOCATION = mavutil.location(-27.274439, 151.290064, 343, 8.7)
|
2019-02-20 19:07:53 -04:00
|
|
|
|
|
|
|
class AutoTestTracker(AutoTest):
|
2019-03-09 00:20:36 -04:00
|
|
|
|
|
|
|
def log_name(self):
|
|
|
|
return "AntennaTracker"
|
|
|
|
|
|
|
|
def test_filepath(self):
|
|
|
|
return os.path.realpath(__file__)
|
|
|
|
|
|
|
|
def sitl_start_location(self):
|
|
|
|
return SITL_START_LOCATION
|
2019-02-20 19:07:53 -04:00
|
|
|
|
|
|
|
def default_mode(self):
|
|
|
|
return "AUTO"
|
|
|
|
|
|
|
|
def is_tracker(self):
|
|
|
|
return True
|
|
|
|
|
2019-03-09 00:20:36 -04:00
|
|
|
def default_frame(self):
|
|
|
|
return "tracker"
|
2019-02-20 19:07:53 -04:00
|
|
|
|
2019-03-09 00:20:36 -04:00
|
|
|
def apply_defaultfile_parameters(self):
|
|
|
|
# tracker doesn't have a default parameters file
|
|
|
|
pass
|
2019-02-20 19:07:53 -04:00
|
|
|
|
|
|
|
def sysid_thismav(self):
|
|
|
|
return 2
|
|
|
|
|
2019-02-27 23:14:28 -04:00
|
|
|
def disabled_tests(self):
|
|
|
|
return {
|
|
|
|
"ArmFeatures": "See https://github.com/ArduPilot/ardupilot/issues/10652",
|
|
|
|
}
|
|
|
|
|
2019-02-20 19:07:53 -04:00
|
|
|
def tests(self):
|
|
|
|
'''return list of all tests'''
|
|
|
|
ret = super(AutoTestTracker, self).tests()
|
|
|
|
ret.extend([
|
|
|
|
])
|
|
|
|
return ret
|