fast and turbo modes
This commit is contained in:
parent
34838abfa9
commit
623f21f769
@ -30,7 +30,7 @@ from functools import partial
|
|||||||
|
|
||||||
from owrx.kiss import KissClient, DirewolfConfig
|
from owrx.kiss import KissClient, DirewolfConfig
|
||||||
from owrx.wsjt import Ft8Profile, WsprProfile, Jt9Profile, Jt65Profile, Ft4Profile
|
from owrx.wsjt import Ft8Profile, WsprProfile, Jt9Profile, Jt65Profile, Ft4Profile
|
||||||
from owrx.js8 import Js8NormalProfile, Js8SlowProfile
|
from owrx.js8 import Js8NormalProfile, Js8SlowProfile, Js8FastProfile, Js8TurboProfile
|
||||||
from owrx.audio import AudioChopper
|
from owrx.audio import AudioChopper
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
@ -464,7 +464,7 @@ class dsp(object):
|
|||||||
elif smd == "ft4":
|
elif smd == "ft4":
|
||||||
chopper_profiles = [Ft4Profile()]
|
chopper_profiles = [Ft4Profile()]
|
||||||
elif smd == "js8":
|
elif smd == "js8":
|
||||||
chopper_profiles = [Js8NormalProfile(), Js8SlowProfile()]
|
chopper_profiles = [Js8NormalProfile(), Js8SlowProfile(), Js8FastProfile(), Js8TurboProfile()]
|
||||||
output_name = "js8_demod"
|
output_name = "js8_demod"
|
||||||
if chopper_profiles is not None:
|
if chopper_profiles is not None:
|
||||||
chopper = AudioChopper(self, self.secondary_process_demod.stdout, *chopper_profiles)
|
chopper = AudioChopper(self, self.secondary_process_demod.stdout, *chopper_profiles)
|
||||||
|
16
owrx/js8.py
16
owrx/js8.py
@ -41,6 +41,22 @@ class Js8SlowProfile(Js8Profile):
|
|||||||
return "E"
|
return "E"
|
||||||
|
|
||||||
|
|
||||||
|
class Js8FastProfile(Js8Profile):
|
||||||
|
def getInterval(self):
|
||||||
|
return 10
|
||||||
|
|
||||||
|
def get_sub_mode(self):
|
||||||
|
return "B"
|
||||||
|
|
||||||
|
|
||||||
|
class Js8TurboProfile(Js8Profile):
|
||||||
|
def getInterval(self):
|
||||||
|
return 6
|
||||||
|
|
||||||
|
def get_sub_mode(self):
|
||||||
|
return "C"
|
||||||
|
|
||||||
|
|
||||||
class Js8Parser(Parser):
|
class Js8Parser(Parser):
|
||||||
decoderRegex = re.compile(" ?<Decode(Started|Debug|Finished)>")
|
decoderRegex = re.compile(" ?<Decode(Started|Debug|Finished)>")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user