summaryrefslogtreecommitdiffstats
path: root/dpd/src
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-25 18:24:22 +0200
committerandreas128 <Andreas>2017-09-25 18:24:22 +0200
commit39e6bd8b1f5cd8fa1c30963a19d9a39ea609820a (patch)
tree5c919122fbdbc54881e8f611a7bc9f68bcf54bdb /dpd/src
parentdf1173a69c6cee61bd76d0f2c6331508e81b453c (diff)
downloaddabmod-39e6bd8b1f5cd8fa1c30963a19d9a39ea609820a.tar.gz
dabmod-39e6bd8b1f5cd8fa1c30963a19d9a39ea609820a.tar.bz2
dabmod-39e6bd8b1f5cd8fa1c30963a19d9a39ea609820a.zip
Add documentation to README.md
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