add secondary demod (not working with my csdr atm, unable to test.)

This commit is contained in:
Jakob Ketterl
2019-05-05 20:36:50 +02:00
parent 628731cba4
commit a4313c3340
2 changed files with 21 additions and 6 deletions

View File

@ -136,6 +136,21 @@ class DspManager(object):
self.dsp.start()
self.localProps.getProperty("mod").wire(set_mod)
if (pm.getPropertyValue("digimodes_enable")):
def set_secondary_mod(mod):
self.dsp.stop()
if mod == False:
self.dsp.set_secondary_demodulator(None)
else:
self.dsp.set_secondary_demodulator(mod)
# TODO frontend will probably miss this
#rxws.send(self, "MSG secondary_fft_size={0} if_samp_rate={1} secondary_bw={2} secondary_setup".format(cfg.digimodes_fft_size, dsp.if_samp_rate(), dsp.secondary_bw()))
self.dsp.start()
self.localProps.getProperty("secondary_mod").wire(set_secondary_mod)
self.localProps.getProperty("secondary_offset_freq").wire(self.dsp.set_secondary_offset_freq)
super().__init__()
def start(self):