2 Commits 25624a3cf8 ... d8c789f767

Author SHA1 Message Date
  Per Mårtensson d8c789f767 Added banbel marker in config 2 weeks ago
  Per Mårtensson 9116ec4653 Added banbel marker in config 2 weeks ago
3 changed files with 17 additions and 10 deletions
  1. 12 10
      rtl_airband.conf
  2. 4 0
      src/config.cpp
  3. 1 0
      src/rtl_airband.h

+ 12 - 10
rtl_airband.conf

@@ -10,24 +10,26 @@ devices: (
   {
     type = "rtlsdr";
     index = 0;
-    gain = 25;
-    centerfreq = 123000000;
-    correction = 80;
+    gain = 32;
+    centerfreq = 124000000;
+    correction = 0;
     channels:
     (
       {
-        freq = 123.35;
-	squelch_threshold = -50;
+        freq = 123.355;
+	      squelch_threshold = -48;
+        banbel = 1;
+        modulation = "am";
         outputs: (
           {
             type = "icecast";
-            server = "icecast.dalsro.se";
+            server = "icecast.westfly.se";
             port = 8000;
-            mountpoint = "TWR.mp3";
-            name = "Tower";
+            mountpoint = "ESGF.mp3";
+            name = "ESGF 123.350";
             genre = "ATC";
-            username = "source";
-            password = "icesource123!";
+            username = "FBGflyg";
+            password = "FBG74flyg!!!";
           },  
 	  {
     	    type = "pulse";

+ 4 - 0
src/config.cpp

@@ -276,6 +276,7 @@ static struct freq_t* mk_freqlist(int n) {
         fl[i].squelch = Squelch();
         fl[i].active_counter = 0;
         fl[i].modulation = MOD_AM;
+        fl[i].banbel = 0;
     }
     return fl;
 }
@@ -408,6 +409,9 @@ static int parse_channels(libconfig::Setting& chans, device_t* dev, int i) {
                 if (chans[j].exists("labels")) {
                     channel->freqlist[f].label = strdup(chans[j]["labels"][f]);
                 }
+                if (chans[j].exists("banbel")) {
+                    channel->freqlist[f].banbel = 1;
+                }
                 if (chans[j].exists("modulations")) {
 #ifdef NFM
                     if (strncmp(chans[j]["modulations"][f], "nfm", 3) == 0) {

+ 1 - 0
src/rtl_airband.h

@@ -230,6 +230,7 @@ struct freq_t {
     NotchFilter notch_filter;      // notch filter - good to remove CTCSS tones
     LowpassFilter lowpass_filter;  // lowpass filter, applied to I/Q after derotation, set at bandwidth/2 to remove out of band noise
     enum modulations modulation;
+    int banbel;
 };
 struct channel_t {
     float wavein[WAVE_LEN];      // FFT output waveform