-
Notifications
You must be signed in to change notification settings - Fork 163
JT4 enablement #374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
JT4 enablement #374
Changes from 1 commit
c16ec8e
cde00a0
d494a59
14087c2
f8fb178
6e6100f
965287b
d4d4f72
cf7b81f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,16 @@ def getProfiles(self) -> List[AudioChopperProfile]: | |
| return [Fst4wProfile(i) for i in profiles if i in Fst4wProfile.availableIntervals] | ||
|
|
||
|
|
||
| class JT4ProfileSource(ConfigWiredProfileSource): | ||
| def getPropertiesToWire(self) -> List[str]: | ||
| return ["jt4_enabled_submodes"] | ||
|
|
||
| def getProfiles(self) -> List[AudioChopperProfile]: | ||
| config = Config.get() | ||
| profiles = config["jt4_enabled_submodes"] if "jt4_enabled_submodes" in config else [] | ||
| return [JT4Profile(i) for i in profiles if i in JT4Profile.availableSubmodes] | ||
|
|
||
|
|
||
| class Q65ProfileSource(ConfigWiredProfileSource): | ||
| def getPropertiesToWire(self) -> List[str]: | ||
| return ["q65_enabled_combinations"] | ||
|
|
@@ -102,6 +112,8 @@ def getSource(mode: str): | |
| return Fst4ProfileSource() | ||
| elif mode == "fst4w": | ||
| return Fst4wProfileSource() | ||
| elif mode == "jt4": | ||
| return JT4ProfileSource() | ||
| elif mode == "q65": | ||
| return Q65ProfileSource() | ||
|
|
||
|
|
@@ -197,6 +209,25 @@ def getMode(self): | |
| return "FST4W" | ||
|
|
||
|
|
||
| class JT4Profile(WsjtProfile): | ||
| availableSubmodes = ["A", "B", "C", "D", "E", "F", "G"] | ||
|
|
||
| def __init__(self, submode): | ||
| self.submode = submode | ||
|
|
||
| def getInterval(self): | ||
| return 60 | ||
|
|
||
| def getSubmode(self): | ||
|
||
| return self.submode | ||
|
|
||
| def decoder_commandline(self, file): | ||
| return ["jt9", "-4", "-b", str(self.submode), "-F", "1000" , "-d", str(self.decoding_depth()), file] | ||
sq6emm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| def getMode(self): | ||
| return "JT4" | ||
|
|
||
|
|
||
| class Q65Mode(Enum): | ||
| # value is the bandwidth multiplier according to https://physics.princeton.edu/pulsar/k1jt/Q65_Quick_Start.pdf | ||
| A = 1 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.