Add possibility to set frequency tolerance (q65 only)

Signed-off-by: Dawid SQ6EMM <sq6emm@hamradio.pl>
This commit is contained in:
Dawid SQ6EMM 2025-03-07 10:24:43 +01:00
parent 6e6100f766
commit 39406ac0de
3 changed files with 14 additions and 1 deletions

View file

@ -157,6 +157,7 @@ defaultConfig = PropertyLayer(
fst4w_enabled_intervals=[120, 300],
jt4_enabled_submodes=["F", "G"],
jt4_frequency_tolerance=20,
q65_frequency_tolerance=20,
q65_enabled_combinations=["A30", "E120", "C60"],
js8_enabled_profiles=["normal", "slow"],
js8_decoding_depth=3,

View file

@ -75,6 +75,11 @@ class DecodingSettingsController(SettingsFormController):
"Default JT4 frequency tolerance",
infotext="A higher frequency tolerance will allow more decodes, but will also consume more cpu",
),
NumberInput(
"q65_frequency_tolerance",
"Default Q65 frequency tolerance",
infotext="A higher frequency tolerance will allow more decodes, but will also consume more cpu",
),
WsjtDecodingDepthsInput(
"wsjt_decoding_depths",
"Individual decoding depths",

View file

@ -36,6 +36,13 @@ class WsjtProfile(AudioChopperProfile, metaclass=ABCMeta):
# default when no setting is provided
return 20
def q65_frequency_tolerance(self):
pm = Config.get()
if "q65_frequency_tolerance" in pm:
return pm["q65_frequency_tolerance"]
# default when no setting is provided
return 20
def getTimestampFormat(self):
if self.getInterval() < 60:
return "%H%M%S"
@ -280,7 +287,7 @@ class Q65Profile(WsjtProfile):
return self.interval
def decoder_commandline(self, file):
return ["jt9", "--q65", "-p", str(self.interval), "-b", self.mode.name, "-d", str(self.decoding_depth()), file]
return ["jt9", "--q65", "-p", str(self.interval), "-b", self.mode.name, "-d", str(self.decoding_depth()), "-F", str(self.jt4_frequency_tolerance()), file]
class Msk144Profile(WsjtProfile):