JTACS: Implementation of the Japanese variant of TACS
This commit is contained in:
@@ -83,16 +83,28 @@ double amps_channel2freq(int channel, int uplink)
|
||||
channel -= 1023;
|
||||
|
||||
freq = 870.030 + (channel - 1) * 0.030;
|
||||
} else {
|
||||
|
||||
if (uplink)
|
||||
freq -= 45.000;
|
||||
} else if (!jtacs) {
|
||||
/* 600 channels */
|
||||
if (channel < 1 || channel > 600)
|
||||
return 0;
|
||||
|
||||
freq = 935.0125 + (channel - 1) * 0.025;
|
||||
}
|
||||
|
||||
if (uplink)
|
||||
freq -= 45.000;
|
||||
if (uplink)
|
||||
freq -= 45.000;
|
||||
} else {
|
||||
/* 799 channels */
|
||||
if (channel < 1 || channel > 799)
|
||||
return 0;
|
||||
|
||||
freq = 860.0125 + (channel - 1) * 0.025;
|
||||
|
||||
if (uplink)
|
||||
freq += 55.000;
|
||||
}
|
||||
|
||||
return freq * 1e6;
|
||||
}
|
||||
|
@@ -6,6 +6,7 @@
|
||||
#include "congestion.h"
|
||||
|
||||
const int tacs = 0;
|
||||
const int jtacs = 0;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
extern const int tacs;
|
||||
extern const int jtacs;
|
||||
|
||||
int main_amps_tacs(int argc, char *argv[]);
|
||||
|
||||
|
Reference in New Issue
Block a user