Adding automatic 1kHz shift to DSC frequencies wherever applicable.

This commit is contained in:
Marat Fayzullin 2024-03-05 21:50:15 -05:00
parent 7893c5b005
commit b1c377548f
4 changed files with 12 additions and 12 deletions

View File

@ -60,13 +60,13 @@ MSI|||16806.5|SITORB
MSI|||19680.5|SITORB
MSI|||22376|SITORB
MSI|||26100.5|SITORB
DSC|||2186.5|DSC
DSC|||4206.5|DSC
DSC|||6311|DSC
DSC|||8413.5|DSC
DSC|||12576|DSC
DSC|||16803.5|DSC
DSC|||156524|DSC
DSC|||2187.5|DSC
DSC|||4207.5|DSC
DSC|||6312|DSC
DSC|||8414.5|DSC
DSC|||12577|DSC
DSC|||16804.5|DSC
DSC|||156525|DSC
#
# NOAA weather broadcasts

View File

@ -46,6 +46,7 @@ Utils.offsetFreq = function(freq, mod) {
case 'rtty170':
case 'rtty85':
case 'sitorb':
case 'dsc':
case 'bpsk31':
case 'bpsk63':
return freq - 1000;

View File

@ -37,10 +37,11 @@ while(<STDIN>)
if(lc($Mod) eq "rtty450") { $Freq -= 1.0; }
if(lc($Mod) eq "rtty170") { $Freq -= 1.0; }
if(lc($Mod) eq "rtty85") { $Freq -= 1.0; }
# Set NAVTEX/SITOR-B frequencies 1kHz lower than the left carrier
# Set NAVTEX/SITOR-B/DSC frequencies 1kHz lower than the left carrier
if(lc($Mod) eq "sitorb") { $Freq -= 1.0; }
if(lc($Mod) eq "dsc") { $Freq -= 1.0; }
# Set CW frequencies 800Hz lower than the carrier
if(lc($Mod) eq "cw") { $Freq -= 0.8; }
if(lc($Mod) eq "cw") { $Freq -= 0.8; }
printf(" {\n");
printf(" \"name\" : \"%s\",\n", $Name);

View File

@ -53,9 +53,7 @@ class EIBI(object):
return freq - 800
elif mode == "fax":
return freq - 1900
elif mode == "rtty450":
return freq - 1000
elif mode == "sitorb":
elif mode in ["cwdecoder", "rtty450", "rtty170", "rtty85", "sitorb", "dsc", "bpsk31", "bpsk63"]:
return freq - 1000
else:
return freq