dbg: testing a larger BW to grab extra signals/spots

pull/107/head
Guenael 2021-12-19 23:55:53 -05:00
rodzic b18858076c
commit 5b9b29eb6e
1 zmienionych plików z 31 dodań i 13 usunięć

Wyświetl plik

@ -43,8 +43,7 @@
#define FS4_RATE SAMPLING_RATE / 4
#define DOWNSAMPLING SAMPLING_RATE / SIGNAL_SAMPLE_RATE
#define DEFAULT_BUF_LENGTH (4 * 16384)
#define FIR_TAPS 32
#define FIR_TAPS 56
/* Thread for decoding */
struct decoder_state {
@ -122,17 +121,36 @@ static void rtlsdr_callback(unsigned char *samples, uint32_t samples_count, void
Using : Octave/MATLAB code for generating compensation FIR coefficients
URL : https://github.com/WestCoastDSP/CIC_Octave_Matlab
*/
/* Coefs with R=6400, M=1, N=2, F0=0.45, L=32 */
const static float zCoef[33] = {
-0.0018102029, 0.0021374727, 0.0039187458, -0.0025019918,
-0.0097042058, 0.0007581166, 0.0199914435, 0.0076257829,
-0.0333186890, -0.0286290175, 0.0447517831, 0.0705913907,
-0.0423330196, -0.1501946045, -0.0158817961, 0.3175072196,
// /* Coefs with R=6400, M=1, N=2, F0=0.45, L=32 */
// const static float zCoef[33] = {
// -0.0018102029, 0.0021374727, 0.0039187458, -0.0025019918,
// -0.0097042058, 0.0007581166, 0.0199914435, 0.0076257829,
// -0.0333186890, -0.0286290175, 0.0447517831, 0.0705913907,
// -0.0423330196, -0.1501946045, -0.0158817961, 0.3175072196,
// 0.5000000000,
// 0.3175072196, -0.0158817961, -0.1501946045, -0.0423330196,
// 0.0705913907, 0.0447517831, -0.0286290175, -0.0333186890,
// 0.0076257829, 0.0199914435, 0.0007581166, -0.0097042058,
// -0.0025019918, 0.0039187458, 0.0021374727, -0.0018102029,
// };
/* Coefs with R=6400, M=1, N=2, F0=0.92, L=56 */
const static float zCoef[FIR_TAPS+1] = {
-0.0025719994, 0.0010118406, 0.0009110589, -0.0034940812,
0.0069713493, -0.0114242921, 0.0167023649, -0.0223683293,
0.0276809249, -0.0316243981, 0.0329894533, -0.0305042264,
0.0230074653, -0.0096499413, -0.0098950740, 0.0352350140,
-0.0650991232, 0.0972408013, -0.1284212838, 0.1544895464,
-0.1705668959, 0.1713384623, -0.1514502486, 0.1060149027,
-0.0312560243, -0.0745848062, 0.2096091227, -0.3638692335,
0.5000000000,
0.3175072196, -0.0158817961, -0.1501946045, -0.0423330196,
0.0705913907, 0.0447517831, -0.0286290175, -0.0333186890,
0.0076257829, 0.0199914435, 0.0007581166, -0.0097042058,
-0.0025019918, 0.0039187458, 0.0021374727, -0.0018102029,
-0.3638692335, 0.2096091227, -0.0745848062, -0.0312560243,
0.1060149027, -0.1514502486, 0.1713384623, -0.1705668959,
0.1544895464, -0.1284212838, 0.0972408013, -0.0650991232,
0.0352350140, -0.0098950740, -0.0096499413, 0.0230074653,
-0.0305042264, 0.0329894533, -0.0316243981, 0.0276809249,
-0.0223683293, 0.0167023649, -0.0114242921, 0.0069713493,
-0.0034940812, 0.0009110589, 0.0010118406, -0.0025719994
};
/* FIR compensation filter buffers */
@ -1028,7 +1046,7 @@ int main(int argc, char **argv) {
/* Destroy the lock/cond/thread */
pthread_cond_destroy(&decState.ready_cond);
pthread_mutex_destroy(&decState.ready_mutex);
pthread_exit(NULL);
//pthread_exit(NULL);
printf("Bye!\n");