diff options
author | Nao Pross <np@0hm.ch> | 2021-11-18 19:07:03 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-11-18 19:07:03 +0100 |
commit | d00bb6d29ceae9d2ee958b57549af335e977edc6 (patch) | |
tree | b1e2a3d05724b936ced4182c435d48ebddff3e79 /src/gr-fadingui/python/datasource.py | |
parent | Add PDFs (diff) | |
download | Fading-d00bb6d29ceae9d2ee958b57549af335e977edc6.tar.gz Fading-d00bb6d29ceae9d2ee958b57549af335e977edc6.zip |
Partially implement xor correlator (untested)
Diffstat (limited to 'src/gr-fadingui/python/datasource.py')
-rw-r--r-- | src/gr-fadingui/python/datasource.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gr-fadingui/python/datasource.py b/src/gr-fadingui/python/datasource.py index ab2f441..c7d68f1 100644 --- a/src/gr-fadingui/python/datasource.py +++ b/src/gr-fadingui/python/datasource.py @@ -8,6 +8,7 @@ import io import numpy as np from gnuradio import gr + class datasource(gr.sync_block): """ Loads data from a file choosen in the graphical user interface, splits into @@ -51,7 +52,7 @@ class datasource(gr.sync_block): def make_header(self, data_size): # TODO: check that data_size is not too big - pilot = 0x1248 + pilot = 0xbeef # TODO: implement hamming code for header header = f"p{pilot:04x}s{data_size:04x}d".encode("ascii") |