Making things work.
This commit is contained in:
parent
399cc3f267
commit
c043e17451
|
|
@ -228,6 +228,7 @@ class CwSkimmerDemodulator(ServiceDemodulator, DialFrequencyReceiver):
|
|||
self.sampleRate = sampleRate
|
||||
self.parser = CwSkimmerParser()
|
||||
workers = [
|
||||
Convert(Format.FLOAT, Format.SHORT),
|
||||
CwSkimmerModule(sampleRate, charCount),
|
||||
self.parser,
|
||||
]
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ class AcarsDecModule(WavFileModule):
|
|||
class CwSkimmerModule(ExecModule):
|
||||
def __init__(self, sampleRate: int = 12000, charCount: int = 8):
|
||||
cmd = ["csdr-cwskimmer", "-r", str(sampleRate), "-n", str(charCount)]
|
||||
super().__init__(Format.FLOAT, Format.CHAR, cmd)
|
||||
super().__init__(Format.SHORT, Format.CHAR, cmd)
|
||||
|
||||
|
||||
class RedseaModule(ExecModule):
|
||||
|
|
|
|||
|
|
@ -721,7 +721,7 @@ class DspManager(SdrSourceEventClient, ClientDemodulatorSecondaryDspEventClient)
|
|||
from csdr.chain.digimodes import CwDemodulator
|
||||
return CwDemodulator(75.0)
|
||||
elif mod == "cwskimmer":
|
||||
from csdr.chain.digimodes import CwSkimmerDemodulator
|
||||
from csdr.chain.toolbox import CwSkimmerDemodulator
|
||||
return CwSkimmerDemodulator()
|
||||
elif mod == "mfrtty170":
|
||||
from csdr.chain.digimodes import MFRttyDemodulator
|
||||
|
|
|
|||
Loading…
Reference in New Issue