aboutsummaryrefslogtreecommitdiffstats
path: root/tests/correlator/acproc.py
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-11-27 14:51:15 +0100
committerNao Pross <np@0hm.ch>2021-11-27 14:51:15 +0100
commit6912b6c68d9e1f16926210af477d39d34a859a72 (patch)
tree7a87fd991b0163a763f96bb6af95f5bcf7abbfa9 /tests/correlator/acproc.py
parentMove network code and update nix files (diff)
downloadFading-6912b6c68d9e1f16926210af477d39d34a859a72.tar.gz
Fading-6912b6c68d9e1f16926210af477d39d34a859a72.zip
Update access code processing
Fixed: FIR filter samples need to be complex conj
Diffstat (limited to 'tests/correlator/acproc.py')
-rwxr-xr-xtests/correlator/acproc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/correlator/acproc.py b/tests/correlator/acproc.py
index 5f6ace3..e119520 100755
--- a/tests/correlator/acproc.py
+++ b/tests/correlator/acproc.py
@@ -49,8 +49,9 @@ ax2.plot(ac.imag, ".-")
ax2.set_title("Symbols of Access Code (time)")
plt.show()
+fir = list(np.conj(ac[::-1]))
+
# print the symbols
print(f"Generated {len(ac)} symbols from a {aclen} byte sequence")
-print(list(ac))
-print("Reversed symbols (for FIR filter)")
-print(list(ac[::-1]))
+print("Reversed symbols (for FIR filter):")
+print(fir)