summaryrefslogtreecommitdiff
path: root/sm_main.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-07-23 21:26:34 +0100
committerDave Hibberd <hibby@debian.org>2024-07-23 21:26:34 +0100
commit4172fa5fdbda80c64e25cb97f27c5b7b4cfee1ea (patch)
treeb6c2ffb8ae1248ab0e4b0fb9f1bc26119586b1c0 /sm_main.c
parente67baf26b150eb848909ebb9f4e13bf6bed3bd0d (diff)
parentb1d1488de60dfff8b89872f863098a884133852f (diff)
Update upstream source from tag 'upstream/0.0.0.72.1'
Update to upstream version '0.0.0.72.1' with Debian dir 3be9dd1ec6203d09272f9d129187c43762eebbe7
Diffstat (limited to 'sm_main.c')
-rw-r--r--sm_main.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sm_main.c b/sm_main.c
index d2c6cfd..fba2f2f 100644
--- a/sm_main.c
+++ b/sm_main.c
@@ -74,8 +74,8 @@ int Channels = 2;
int BitsPerSample = 16;
float TX_Samplerate = 12000;
float RX_Samplerate = 12000;
-int RX_SR = 11025;
-int TX_SR = 11025;
+//int RX_SR = 11025;
+//int TX_SR = 11025;
int RX_PPM = 0;
int TX_PPM = 0;
int tx_bufsize = 512;
@@ -448,11 +448,12 @@ void init_Q4800(int snd_ch)
void init_Q3600(int snd_ch)
{
- qpsk_set[snd_ch].mode = QPSK_SM;
+ qpsk_set[snd_ch].mode = QPSK_V26; // QPSK_SM;
modem_mode[snd_ch] = MODE_QPSK;
rx_shift[snd_ch] = 1800;
rx_baudrate[snd_ch] = 1800;
tx_bitrate[snd_ch] = 3600;
+ pskStates[snd_ch] = 4;
if (modem_def[snd_ch])
get_filter_values(snd_ch);
}
@@ -1041,7 +1042,10 @@ void BufferFull(short * Samples, int nSamples) // These are Stereo Samples
// We need to run the waterfall FFT for the frequency guessing to work
+
int FirstWaterfallChan = 0;
+
+
short * ptr1 = &fft_buf[0][fftCount];
short * ptr2 = &fft_buf[1][fftCount];
@@ -1087,7 +1091,7 @@ void BufferFull(short * Samples, int nSamples) // These are Stereo Samples
data2 += 2;
}
if (((Toggle & 1) == 0))
- doWaterfall(1);
+ doWaterfall(1);
}
if (Firstwaterfall || Secondwaterfall)