Added FAX LPM parameter (default is 120).

This commit is contained in:
Marat Fayzullin 2024-01-10 18:45:18 -05:00
parent d338c81831
commit b77f512bed
3 changed files with 8 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class FaxDemodulator(ServiceDemodulator, DialFrequencyReceiver):
pm = Config.get()
self.parser = FaxParser(service=service)
self.sampleRate = 12000
self.lpm = 120
self.lpm = pm["fax_lpm"]
self.dbgTime = 300000
self.postProcess = pm["fax_postprocess"]
self.color = pm["fax_color"]

View File

@ -205,6 +205,7 @@ defaultConfig = PropertyLayer(
vdl2_ttl=1800,
hfdl_ttl=1800,
acars_ttl=1800,
fax_lpm=120,
fax_postprocess=True,
fax_color=False,
fax_am=False,

View File

@ -101,6 +101,12 @@ class DecodingSettingsController(SettingsFormController):
),
Section(
"Fax transmissions",
NumberInput(
"fax_lpm",
"Transmission speed",
validator=RangeValidator(30, 480),
append="lpm",
),
CheckboxInput("fax_postprocess", "Post-process received images to reduce noise"),
CheckboxInput("fax_color", "Receive color images"),
CheckboxInput("fax_am", "Use amplitude modulation"),