summaryrefslogtreecommitdiffstats
path: root/dpd/src
diff options
context:
space:
mode:
Diffstat (limited to 'dpd/src')
-rw-r--r--dpd/src/Measure_Shoulders.py2
-rw-r--r--dpd/src/const.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/dpd/src/Measure_Shoulders.py b/dpd/src/Measure_Shoulders.py
index 7a165c4..1417613 100644
--- a/dpd/src/Measure_Shoulders.py
+++ b/dpd/src/Measure_Shoulders.py
@@ -75,7 +75,7 @@ class Measure_Shoulder:
dt = datetime.datetime.now().isoformat()
fig_path = logging_path + "/" + dt + "_sync_subsample_aligned.svg"
- fft = self.calc_fft_db(signal, 100)
+ fft = calc_fft_db(signal, 100)
peak, idxs_peak = self._calc_peak(fft)
shoulder, idxs_sh = self._calc_shoulder_hight(fft, self.c)
diff --git a/dpd/src/const.py b/dpd/src/const.py
index 6b0178f..cbef8af 100644
--- a/dpd/src/const.py
+++ b/dpd/src/const.py
@@ -45,7 +45,7 @@ class const:
# Constants for TX_Agc
self.TAGC_max_txgain = 89
- self.TAGC_tx_median_target = 0.1
+ self.TAGC_tx_median_target = target_median
self.TAGC_tx_median_max = self.TAGC_tx_median_target*1.4
self.TAGC_tx_median_min = self.TAGC_tx_median_target/1.4