aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-05-09 17:18:46 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-05-09 17:18:46 +0200
commit277f4d4999b30cfc858c30bcb029a9c224b21806 (patch)
treeb9f3259600958a12dda4cee06358ddcb07219646
parent9b2a36a5448ea037c01fc5b6a48babfaebc441c3 (diff)
downloaddabmod-277f4d4999b30cfc858c30bcb029a9c224b21806.tar.gz
dabmod-277f4d4999b30cfc858c30bcb029a9c224b21806.tar.bz2
dabmod-277f4d4999b30cfc858c30bcb029a9c224b21806.zip
DPDCE: ensure DAB signal parameters are integer
-rw-r--r--dpd/src/GlobalConfig.py11
1 files changed, 6 insertions, 5 deletions
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)