summaryrefslogtreecommitdiffstats
path: root/dpd
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-15 11:46:20 +0200
committerandreas128 <Andreas>2017-09-15 11:52:25 +0200
commitb87f3a7babdeabe605d8192328bce669b52cfd7a (patch)
tree71f166d922ab2787d59c2b40789499364f96ecaf /dpd
parent6f9eb7f15b93c97b74b7134ed428298674121ec3 (diff)
downloaddabmod-b87f3a7babdeabe605d8192328bce669b52cfd7a.tar.gz
dabmod-b87f3a7babdeabe605d8192328bce669b52cfd7a.tar.bz2
dabmod-b87f3a7babdeabe605d8192328bce669b52cfd7a.zip
Add constants for Measure_Shoulder
Diffstat (limited to 'dpd')
-rw-r--r--dpd/src/const.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/dpd/src/const.py b/dpd/src/const.py
index 2a7e64c..daaac5d 100644
--- a/dpd/src/const.py
+++ b/dpd/src/const.py
@@ -45,3 +45,17 @@ class const:
# Constants for Model_PM
self.MPM_tx_min = 0.1
+
+ # Constants for Measure_Shoulder
+ assert sample_rate==8192000
+ meas_offset = 976 # Offset from center frequency to measure shoulder [kHz]
+ meas_width = 100 # Size of frequency delta to measure shoulder [kHz]
+ shoulder_offset_edge = np.abs(meas_offset - self.FFT_delta)
+ self.MS_shoulder_left_start = self.FFT_start - shoulder_offset_edge - meas_width / 2
+ self.MS_shoulder_left_end = self.FFT_start - shoulder_offset_edge + meas_width / 2
+ self.MS_shoulder_right_start = self.FFT_end + shoulder_offset_edge - meas_width / 2
+ self.MS_shoulder_right_end = self.FFT_end + shoulder_offset_edge + meas_width / 2
+ self.MS_peak_start = self.FFT_start + 100 # Ignore region near edges
+ self.MS_peak_end = self.FFT_end - 100
+
+ self.MS_FFT_size = 8192