From 277f4d4999b30cfc858c30bcb029a9c224b21806 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 9 May 2018 17:18:46 +0200 Subject: DPDCE: ensure DAB signal parameters are integer --- dpd/src/GlobalConfig.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'dpd') diff --git a/dpd/src/GlobalConfig.py b/dpd/src/GlobalConfig.py index b84b9d7..56839fc 100644 --- a/dpd/src/GlobalConfig.py +++ b/dpd/src/GlobalConfig.py @@ -18,11 +18,12 @@ class GlobalConfig: # DAB frame # Time domain - self.T_F = self.sample_rate / 2048000 * 196608 # Transmission frame duration - self.T_NULL = self.sample_rate / 2048000 * 2656 # Null symbol duration - self.T_S = self.sample_rate / 2048000 * 2552 # Duration of OFDM symbols of indices l = 1, 2, 3,... L; - self.T_U = self.sample_rate / 2048000 * 2048 # Inverse of carrier spacing - self.T_C = self.sample_rate / 2048000 * 504 # Duration of cyclic prefix + oversample = int(self.sample_rate / 2048000) + self.T_F = oversample * 196608 # Transmission frame duration + self.T_NULL = oversample * 2656 # Null symbol duration + self.T_S = oversample * 2552 # Duration of OFDM symbols of indices l = 1, 2, 3,... L; + self.T_U = oversample * 2048 # Inverse of carrier spacing + self.T_C = oversample * 504 # Duration of cyclic prefix # Frequency Domain # example: np.delete(fft[3328:4865], 768) -- cgit v1.2.3