use information from the mode registry to set up services

This commit is contained in:
Jakob Ketterl
2020-12-06 00:36:20 +01:00
parent a3fd931931
commit bee6ddc843
3 changed files with 44 additions and 22 deletions

View File

@ -656,6 +656,9 @@ class dsp(object):
def get_operating_freq(self):
return self.center_freq + self.offset_freq
def set_bandpass(self, bandpass):
self.set_bpf(bandpass.low_cut, bandpass.high_cut)
def set_bpf(self, low_cut, high_cut):
self.low_cut = low_cut
self.high_cut = high_cut