pass the frequency along with the job, refs #22 #61

This commit is contained in:
Jakob Ketterl
2020-04-05 16:35:46 +02:00
parent 366def0235
commit d06e9151b9
4 changed files with 54 additions and 29 deletions

View File

@ -262,7 +262,9 @@ class ServiceHandler(object):
output = WsjtServiceOutput(frequency)
d = dsp(output)
d.nc_port = source.getPort()
d.set_offset_freq(frequency - source.getProps()["center_freq"])
center_freq = source.getProps()["center_freq"]
d.set_offset_freq(frequency - center_freq)
d.set_center_freq(center_freq)
if mode == "packet":
d.set_demodulator("nfm")
d.set_bpf(-4000, 4000)