mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
autotest: create Telem baseclass for telem clients
This commit is contained in:
parent
df614cc34f
commit
b75dd36f71
@ -166,7 +166,7 @@ class MAVProxyLogFile(object):
|
||||
else:
|
||||
sys.stdout.flush()
|
||||
|
||||
class FRSky(object):
|
||||
class Telem(object):
|
||||
def __init__(self, destination_address):
|
||||
self.destination_address = destination_address
|
||||
|
||||
@ -174,25 +174,6 @@ class FRSky(object):
|
||||
self.connected = False
|
||||
self.port = None
|
||||
|
||||
self.dataid_GPS_ALT_BP = 0x01
|
||||
self.dataid_TEMP1 = 0x02
|
||||
self.dataid_FUEL = 0x04
|
||||
self.dataid_TEMP2 = 0x05
|
||||
self.dataid_GPS_ALT_AP = 0x09
|
||||
self.dataid_BARO_ALT_BP = 0x10
|
||||
self.dataid_GPS_SPEED_BP = 0x11
|
||||
self.dataid_GPS_LONG_BP = 0x12
|
||||
self.dataid_GPS_LAT_BP = 0x13
|
||||
self.dataid_GPS_COURS_BP = 0x14
|
||||
self.dataid_GPS_SPEED_AP = 0x19
|
||||
self.dataid_GPS_LONG_AP = 0x1A
|
||||
self.dataid_GPS_LAT_AP = 0x1B
|
||||
self.dataid_BARO_ALT_AP = 0x21
|
||||
self.dataid_GPS_LONG_EW = 0x22
|
||||
self.dataid_GPS_LAT_NS = 0x23
|
||||
self.dataid_CURRENT = 0x28
|
||||
self.dataid_VFAS = 0x39
|
||||
|
||||
def connect(self):
|
||||
try:
|
||||
self.connected = False
|
||||
@ -235,6 +216,29 @@ class FRSky(object):
|
||||
return
|
||||
self.update_read()
|
||||
|
||||
class FRSky(Telem):
|
||||
def __init__(self, destination_address):
|
||||
super(FRSky, self).__init__(destination_address)
|
||||
|
||||
self.dataid_GPS_ALT_BP = 0x01
|
||||
self.dataid_TEMP1 = 0x02
|
||||
self.dataid_FUEL = 0x04
|
||||
self.dataid_TEMP2 = 0x05
|
||||
self.dataid_GPS_ALT_AP = 0x09
|
||||
self.dataid_BARO_ALT_BP = 0x10
|
||||
self.dataid_GPS_SPEED_BP = 0x11
|
||||
self.dataid_GPS_LONG_BP = 0x12
|
||||
self.dataid_GPS_LAT_BP = 0x13
|
||||
self.dataid_GPS_COURS_BP = 0x14
|
||||
self.dataid_GPS_SPEED_AP = 0x19
|
||||
self.dataid_GPS_LONG_AP = 0x1A
|
||||
self.dataid_GPS_LAT_AP = 0x1B
|
||||
self.dataid_BARO_ALT_AP = 0x21
|
||||
self.dataid_GPS_LONG_EW = 0x22
|
||||
self.dataid_GPS_LAT_NS = 0x23
|
||||
self.dataid_CURRENT = 0x28
|
||||
self.dataid_VFAS = 0x39
|
||||
|
||||
class FRSkyD(FRSky):
|
||||
def __init__(self, destination_address):
|
||||
super(FRSkyD, self).__init__(destination_address)
|
||||
|
Loading…
Reference in New Issue
Block a user