Display channel offset with TX and RX channel frequencies on startup

This commit is contained in:
Andreas Eversberg
2017-10-12 19:43:15 +02:00
parent e67c171035
commit f7a0e4622b
12 changed files with 32 additions and 9 deletions

View File

@@ -168,12 +168,15 @@ double cnetz_kanal2freq(int kanal, int unterband)
{
double freq = 465.750;
if (unterband == 2)
return -10.000 * 1e6;
if ((kanal & 1))
freq -= (double)(kanal + 1) / 2.0 * 0.010;
else
freq -= (double)kanal / 2.0 * 0.0125;
if (unterband)
freq -= 10.0;
freq -= 10.000;
return freq * 1e6;
}