From: John Melton - G0ORX/N6LYT Date: Thu, 9 Mar 2017 12:05:07 +0000 (+0000) Subject: Sets fft size to 2048 by default. Need to delete props file before running X-Git-Url: https://git.rkrishnan.org/pf/$rel_link?a=commitdiff_plain;h=fbc6271edf394a300814e41dcab83c1e4e599fc7;p=pihpsdr.git Sets fft size to 2048 by default. Need to delete props file before running --- diff --git a/radio.c b/radio.c index d0ec898..48206a3 100644 --- a/radio.c +++ b/radio.c @@ -113,7 +113,7 @@ RECEIVER *active_receiver; TRANSMITTER *transmitter; int buffer_size=1024; // 64, 128, 256, 512, 1024 -int fft_size=4096; // 1024, 2048, 4096, 8192, 16384 +int fft_size=2048; // 1024, 2048, 4096, 8192, 16384 int atlas_penelope=0; int atlas_clock_source_10mhz=0; diff --git a/transmitter.c b/transmitter.c index d2d9b4e..289aa83 100644 --- a/transmitter.c +++ b/transmitter.c @@ -416,6 +416,7 @@ fprintf(stderr,"transmitter: allocate buffers: mic_input_buffer=%d iq_output_buf 0, // run 0.010, 0.025, 0.0, 0.010, 0); +fprintf(stderr,"TXASetNC\n"); TXASetNC(tx->id, tx->fft_size); TXASetMP(tx->id, tx->low_latency); @@ -462,6 +463,7 @@ fprintf(stderr,"transmitter: allocate buffers: mic_input_buffer=%d iq_output_buf SetTXAPanelGain1(tx->id,gain); SetTXAPanelRun(tx->id, 1); + XCreateAnalyzer(tx->id, &rc, 262144, 1, 1, ""); if (rc != 0) { fprintf(stderr, "XCreateAnalyzer id=%d failed: %d\n",tx->id,rc);