js8 slow mode
This commit is contained in:
parent
2df56ad8b9
commit
280e39d9c4
14
owrx/js8.py
14
owrx/js8.py
@ -6,7 +6,7 @@ from js8py.frames import Js8FrameHeartbeat, Js8FrameCompound
|
|||||||
from owrx.map import Map, LocatorLocation
|
from owrx.map import Map, LocatorLocation
|
||||||
from owrx.pskreporter import PskReporter
|
from owrx.pskreporter import PskReporter
|
||||||
from owrx.metrics import Metrics, CounterMetric
|
from owrx.metrics import Metrics, CounterMetric
|
||||||
from abc import ABCMeta
|
from abc import ABCMeta, abstractmethod
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
@ -18,18 +18,28 @@ class Js8Profile(AudioChopperProfile, metaclass=ABCMeta):
|
|||||||
return "%y%m%d_%H%M%S"
|
return "%y%m%d_%H%M%S"
|
||||||
|
|
||||||
def decoder_commandline(self, file):
|
def decoder_commandline(self, file):
|
||||||
return ["js8", "--js8", "-d", str(self.decoding_depth("js8")), file]
|
return ["js8", "--js8", "-b", self.get_sub_mode(), "-d", str(self.decoding_depth("js8")), file]
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def get_sub_mode(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Js8NormalProfile(Js8Profile):
|
class Js8NormalProfile(Js8Profile):
|
||||||
def getInterval(self):
|
def getInterval(self):
|
||||||
return 15
|
return 15
|
||||||
|
|
||||||
|
def get_sub_mode(self):
|
||||||
|
return "A"
|
||||||
|
|
||||||
|
|
||||||
class Js8SlowProfile(Js8Profile):
|
class Js8SlowProfile(Js8Profile):
|
||||||
def getInterval(self):
|
def getInterval(self):
|
||||||
return 30
|
return 30
|
||||||
|
|
||||||
|
def get_sub_mode(self):
|
||||||
|
return "E"
|
||||||
|
|
||||||
|
|
||||||
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