add settings for frequency_display_resolution and squelch_auto_margin

This commit is contained in:
Jakob Ketterl 2021-02-07 22:40:03 +01:00
parent 0517a59308
commit 8c4b9dd08a

View File

@ -96,8 +96,7 @@ class GeneralSettingsController(AdminController):
NumberInput( NumberInput(
"receiver_asl", "receiver_asl",
"Receiver elevation", "Receiver elevation",
infotext="Elevation in meters above mean see level", append="meters above mean sea level",
append="m MSL",
), ),
TextInput("receiver_admin", "Receiver admin"), TextInput("receiver_admin", "Receiver admin"),
LocationInput("receiver_gps", "Receiver coordinates"), LocationInput("receiver_gps", "Receiver coordinates"),
@ -158,16 +157,30 @@ class GeneralSettingsController(AdminController):
NumberInput("digimodes_fft_size", "Digimodes FFT size", append="bins"), NumberInput("digimodes_fft_size", "Digimodes FFT size", append="bins"),
), ),
Section( Section(
"Wideband FM settings", "Demodulator settings",
NumberInput(
"squelch_auto_margin",
"Auto-Squelch threshold",
infotext="Offset to be added to the current signal level when using the auto-squelch",
append="dB",
),
DropdownInput( DropdownInput(
"wfm_deemphasis_tau", "wfm_deemphasis_tau",
"Tau setting for WFM (broadcast FM) deemphasis", "Tau setting for WFM (broadcast FM) deemphasis",
options=[o.toOption() for o in WfmTauValues], options=[o.toOption() for o in WfmTauValues],
converter=WfmTauConverter(), converter=WfmTauConverter(),
infotext='See <a href="https://en.wikipedia.org/wiki/FM_broadcasting#Pre-emphasis_and_de-emphasis">' infotext='See <a href="https://en.wikipedia.org/wiki/FM_broadcasting#Pre-emphasis_and_de-emphasis">'
+ "this Wikipedia article for more information</a>", + "this Wikipedia article</a> for more information",
), ),
), ),
Section(
"Display settings",
NumberInput(
"frequency_display_precision",
"Frequency display precision",
infotext="Number of decimal digits to show on the frequency display"
)
),
Section( Section(
"Digital voice", "Digital voice",
NumberInput( NumberInput(