From b87f3a7babdeabe605d8192328bce669b52cfd7a Mon Sep 17 00:00:00 2001 From: andreas128 Date: Fri, 15 Sep 2017 11:46:20 +0200 Subject: Add constants for Measure_Shoulder --- dpd/src/const.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'dpd') 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 -- cgit v1.2.3