make aprs available as service
This commit is contained in:
parent
bf5e2bcc84
commit
3dbc6ffb2b
@ -253,4 +253,4 @@ map_position_retention_time = 2 * 60 * 60
|
||||
temporary_directory = "/tmp"
|
||||
|
||||
services_enabled = False
|
||||
services_decoders = ["ft8", "ft4", "wspr"]
|
||||
services_decoders = ["ft8", "ft4", "wspr", "packet"]
|
||||
|
@ -80,6 +80,10 @@ class ServiceHandler(object):
|
||||
d = dsp(ServiceOutput(frequency))
|
||||
d.nc_port = self.source.getPort()
|
||||
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_bpf(0, 3000)
|
||||
d.set_secondary_demodulator(mode)
|
||||
|
Loading…
Reference in New Issue
Block a user