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.
23 lines
603 B
Python
23 lines
603 B
Python
import os
|
|
|
|
'''
|
|
Plugin handler for the Kelunji EchoPro plugin.
|
|
'''
|
|
|
|
class SeedlinkPluginHandler:
|
|
# Create defaults
|
|
def __init__(self): pass
|
|
|
|
def push(self, seedlink):
|
|
# Check and set defaults
|
|
try: seedlink.param('sources.echopro_3ch100hz.comport')
|
|
except: seedlink.setParam('sources.echopro_3ch100hz.comport', '/dev/ttyS0')
|
|
|
|
try: seedlink.param('sources.echopro_3ch100hz.proc')
|
|
except: seedlink.setParam('sources.echopro_3ch100hz.proc', 'echopro_100')
|
|
|
|
return seedlink.param('sources.echopro_3ch100hz.comport')
|
|
|
|
# Flush does nothing
|
|
def flush(self, seedlink): pass
|