diff options
author | jaseg <git@jaseg.net> | 2020-03-06 11:09:35 +0100 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2020-03-06 11:09:35 +0100 |
commit | ad9e17c35c2fc358e6660d179c844b14b92c5541 (patch) | |
tree | 29926a0077f2cebaa6a6714dafe5637be91f4d6e /lab-windows/scratch.ipynb | |
parent | 4b419bd1ad9f22266e068341176f5ab665a26222 (diff) | |
download | master-thesis-ad9e17c35c2fc358e6660d179c844b14b92c5541.tar.gz master-thesis-ad9e17c35c2fc358e6660d179c844b14b92c5541.tar.bz2 master-thesis-ad9e17c35c2fc358e6660d179c844b14b92c5541.zip |
WIP DSSS decoding
Diffstat (limited to 'lab-windows/scratch.ipynb')
-rw-r--r-- | lab-windows/scratch.ipynb | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/lab-windows/scratch.ipynb b/lab-windows/scratch.ipynb index b35c76d..671bedf 100644 --- a/lab-windows/scratch.ipynb +++ b/lab-windows/scratch.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 3, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -10,7 +10,9 @@ "\n", "import numpy as np\n", "from matplotlib import pyplot as plt\n", - "import matplotlib" + "import matplotlib\n", + "\n", + "import scipy.signal as sig" ] }, { @@ -141,13 +143,40 @@ " ax.text(0.2, 0.2, f'mean={mean:.3}Hz, rms={rms*1e3:.3}mHz', ha='center', va='center', transform=ax.transAxes,\n", " bbox=dict(boxstyle=\"square\", ec=(0,0,0,0), fc=(1,1,1,0.8)))" ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "array([[ 2.35232554e-18, 4.70465108e-18, 2.35232554e-18,\n", + " 1.00000000e+00, -1.97549493e+00, 9.75650918e-01],\n", + " [ 1.00000000e+00, 2.00000000e+00, 1.00000000e+00,\n", + " 1.00000000e+00, -1.97916324e+00, 9.79319515e-01],\n", + " [ 1.00000000e+00, 2.00000000e+00, 1.00000000e+00,\n", + " 1.00000000e+00, -1.98597735e+00, 9.86134166e-01],\n", + " [ 1.00000000e+00, 2.00000000e+00, 1.00000000e+00,\n", + " 1.00000000e+00, -1.99495144e+00, 9.95108965e-01]])" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "sig.butter(8, 20e-3, output='sos', fs=10.0)" + ] } ], "metadata": { "kernelspec": { - "display_name": "labenv", + "display_name": "winlabenv", "language": "python", - "name": "labenv" + "name": "winlabenv" }, "language_info": { "codemirror_mode": { @@ -159,7 +188,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.1" + "version": "3.7.6" } }, "nbformat": 4, |