From d65aab6956d7f4f472f83a5ade94eb108f954268 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Mon, 24 Mar 2025 21:07:47 +0100 Subject: [PATCH] did not expect this --- gen_wave.py | 2 +- src/rds.h | 2 +- src/waveforms.c | 2 +- src/waveforms.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gen_wave.py b/gen_wave.py index 8262a9d..33c7e86 100644 --- a/gen_wave.py +++ b/gen_wave.py @@ -7,7 +7,7 @@ if PLOT: import matplotlib.pyplot as plt if FFT: import numpy as np # Import numpy for FFT DATA_RATE = 1187.5 -SIZE_RATIO = 1 +SIZE_RATIO = 2 ratio = 16 sample_rate = DATA_RATE*ratio diff --git a/src/rds.h b/src/rds.h index e3a0e21..09af6c0 100644 --- a/src/rds.h +++ b/src/rds.h @@ -12,7 +12,7 @@ #define BITS_PER_GROUP (GROUP_LENGTH * (BLOCK_SIZE + POLY_DEG)) #define RDS_SAMPLE_RATE 19000 #define SAMPLES_PER_BIT 16 -#define FILTER_SIZE 32 +#define FILTER_SIZE 64 #define SAMPLE_BUFFER_SIZE (SAMPLES_PER_BIT + FILTER_SIZE) #define RT_LENGTH 64 diff --git a/src/waveforms.c b/src/waveforms.c index 9a5c0bf..e012269 100644 --- a/src/waveforms.c +++ b/src/waveforms.c @@ -6,5 +6,5 @@ Released under the GNU GPL v3 license. */ -float waveform_biphase[32] = {0.017316017316017396, 0.015236086644829783, 0.0, -0.025132981969720025, -0.04761904761904756, -0.046927146866075575, 0.0, 0.11019845940569595, 0.2857142857142856, 0.5076664070057264, 0.7363107781851077, 0.9183204950474642, 1.0, 0.9428090415820631, 0.7363107781851077, 0.4040610178208841, 0.0, -0.4040610178208842, -0.7363107781851077, -0.9428090415820631, -1.0, -0.918320495047464, -0.7363107781851077, -0.5076664070057264, -0.2857142857142857, -0.11019845940569584, 0.0, 0.046927146866075464, 0.04761904761904745, 0.025132981969720136, 0.0, -0.015236086644829672}; +float waveform_biphase[64] = {0.001905215527506554, 0.0014857449947831558, 0.0, -0.0018260510389287443, -0.002879473467708782, -0.0022799681256350235, 0.0, 0.0028998088186253934, 0.004662004662004504, 0.003770143371148116, 0.0, -0.005034068109133871, -0.008325008325008265, -0.006947655510042394, 0.0, 0.01000275871035683, 0.017316017316017396, 0.015236086644829783, 0.0, -0.025132981969720025, -0.04761904761904756, -0.046927146866075575, 0.0, 0.11019845940569595, 0.2857142857142856, 0.5076664070057264, 0.7363107781851077, 0.9183204950474642, 1.0, 0.9428090415820631, 0.7363107781851077, 0.4040610178208841, 0.0, -0.4040610178208842, -0.7363107781851077, -0.9428090415820631, -1.0, -0.918320495047464, -0.7363107781851077, -0.5076664070057264, -0.2857142857142857, -0.11019845940569584, 0.0, 0.046927146866075464, 0.04761904761904745, 0.025132981969720136, 0.0, -0.015236086644829672, -0.017316017316017285, -0.010002758710356718, 0.0, 0.006947655510042505, 0.008325008325008376, 0.005034068109133871, 0.0, -0.003770143371148116, -0.004662004662004615, -0.0028998088186253934, 0.0, 0.0022799681256351345, 0.002879473467708893, 0.0018260510389287443, 0.0, -0.0014857449947831558}; diff --git a/src/waveforms.h b/src/waveforms.h index de33dee..227c793 100644 --- a/src/waveforms.h +++ b/src/waveforms.h @@ -6,4 +6,4 @@ Released under the GNU GPL v3 license. */ -extern float waveform_biphase[32]; +extern float waveform_biphase[64];