make aprs available as service

This commit is contained in:
Jakob Ketterl 2019-08-12 00:02:39 +02:00
parent bf5e2bcc84
commit 3dbc6ffb2b
2 changed files with 7 additions and 3 deletions

View File

@ -253,4 +253,4 @@ map_position_retention_time = 2 * 60 * 60
temporary_directory = "/tmp" temporary_directory = "/tmp"
services_enabled = False services_enabled = False
services_decoders = ["ft8", "ft4", "wspr"] services_decoders = ["ft8", "ft4", "wspr", "packet"]

View File

@ -80,6 +80,10 @@ class ServiceHandler(object):
d = dsp(ServiceOutput(frequency)) d = dsp(ServiceOutput(frequency))
d.nc_port = self.source.getPort() d.nc_port = self.source.getPort()
d.set_offset_freq(frequency - self.source.getProps()["center_freq"]) d.set_offset_freq(frequency - self.source.getProps()["center_freq"])
if mode == "packet":
d.set_demodulator("nfm")
d.set_bpf(-4000, 4000)
else:
d.set_demodulator("usb") d.set_demodulator("usb")
d.set_bpf(0, 3000) d.set_bpf(0, 3000)
d.set_secondary_demodulator(mode) d.set_secondary_demodulator(mode)