Now longer translating EIBI CW bookmarks 800Hz down!

This commit is contained in:
Marat Fayzullin 2024-11-06 23:09:39 -05:00
parent 5844044ab3
commit 14c3e8c1c9
2 changed files with 10 additions and 3 deletions

View File

@ -39,9 +39,14 @@ while(<STDIN>)
if(lc($Mod) eq "rtty85") { $Freq -= 1.0; }
# Set NAVTEX/SITOR-B/DSC frequencies 1kHz lower than the left carrier
if(lc($Mod) eq "sitorb") { $Freq -= 1.0; }
if(lc($Mod) eq "navtex") { $Freq -= 1.0; }
if(lc($Mod) eq "dsc") { $Freq -= 1.0; }
# Set BPSK frequencies 1000Hz lower than the carrier
if(lc($Mod) eq "bpsk31") { $Freq -= 1.0; }
if(lc($Mod) eq "bpsk63") { $Freq -= 1.0; }
# Set CW frequencies 800Hz lower than the carrier
if(lc($Mod) eq "cw") { $Freq -= 0.8; }
# This is now done at the client side!
#if(lc($Mod) eq "cw") { $Freq -= 0.8; }
printf(" {\n");
printf(" \"name\" : \"%s\",\n", $Name);

View File

@ -41,10 +41,12 @@ class EIBI(object):
@staticmethod
def correctFreq(freq: int, mode: str) -> int:
if mode == "cw":
return freq - 800
# This is now done on the client side
#return freq - 800
return freq
elif mode == "fax":
return freq - 1900
elif mode in ["cwdecoder", "rtty450", "rtty170", "rtty85", "sitorb", "dsc", "bpsk31", "bpsk63"]:
elif mode in ["cwdecoder", "rtty450", "rtty170", "rtty85", "sitorb", "navtex", "dsc", "bpsk31", "bpsk63"]:
return freq - 1000
else:
return freq