You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
660 B
Python

import os
'''
Plugin handler for the EarthData PS6-24 plugin.
'''
class SeedlinkPluginHandler:
# Create defaults
def __init__(self): pass
def push(self, seedlink):
# Check and set defaults
try: seedlink.param('sources.edata.comport')
except: seedlink.setParam('sources.edata.comport', '/dev/data')
try: seedlink.param('sources.edata.baudrate')
except: seedlink.setParam('sources.edata.baudrate', 115200)
try: seedlink.param('sources.edata.proc')
except: seedlink.setParam('sources.edata.proc', 'edata_100')
return seedlink.param('sources.edata.comport')
# Flush does nothing
def flush(self, seedlink):
pass