diff --git a/src/pifmrds/pi_fm_rds.cpp b/src/pifmrds/pi_fm_rds.cpp index e0bda2a..681cc54 100644 --- a/src/pifmrds/pi_fm_rds.cpp +++ b/src/pifmrds/pi_fm_rds.cpp @@ -24,12 +24,6 @@ extern "C" #include ngfmdmasync *fmmod; -// The deviation specifies how wide the signal is. -// Use 75kHz for WFM (broadcast radio) -// and about 2.5kHz for NFM (walkie-talkie style radio) -//#define DEVIATION 75000 -//FOR NFM -//#define DEVIATION 2500 static volatile uint32_t *pad_reg; #define GPIO_PAD_0_27 (0x2C/4) #define GPIO_PAD_28_45 (0x30/4) @@ -164,6 +158,10 @@ int tx(uint32_t carrier_freq, char *audio_file, uint16_t pi, char *ps, char *rt, float deviation_scale_factor; //if( divider ) // PLL modulation { // note samples are [-10:10] + + // The deviation specifies how wide the signal is (from its lowest bandwidht to its highest). + // Use 75kHz for WFM (broadcast radio, or 50khz can be used) + // and about 2.5kHz for NFM (walkie-talkie style radio) deviation_scale_factor= 0.1 * (deviation ) ; // todo PPM } @@ -230,7 +228,6 @@ int main(int argc, char **argv) { int alternative_freq[100] = {}; float ppm = 0; int bypassfreqrange = 0; - int custom_deviation = 0; float cutofffreq = 15700; // Parse command-line arguments for(int i=1; i