From 37338e2ad8ca226119121432b65f6c61134e60ac Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 18 Mar 2020 20:35:15 +0100 Subject: Fix firmware dsss decoding bug This is my #1 top dumbest bug like ever --- controller/fw/src/main.c | 3 ++- lab-windows/scratch.ipynb | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/controller/fw/src/main.c b/controller/fw/src/main.c index 814c723..d2795df 100644 --- a/controller/fw/src/main.c +++ b/controller/fw/src/main.c @@ -213,6 +213,8 @@ int main(void) GPIOA->MODER |= (1<BSRR = 1<<7; GPIOA->BSRR = 1<<12; - dsss_demod_init(&demod_state); dsss_demod_step(&demod_state, out, freq_sample_ts); GPIOA->BSRR = 1<<12<<16; } diff --git a/lab-windows/scratch.ipynb b/lab-windows/scratch.ipynb index d31ef92..6459245 100644 --- a/lab-windows/scratch.ipynb +++ b/lab-windows/scratch.ipynb @@ -129,12 +129,12 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 44, "metadata": {}, "outputs": [], "source": [ - "with open('data/dsss_test_demod_fixed_03.bin', 'wb') as f:\n", - " for freq in read_freq_log('data/dsss_test_demod_fixed_03.log'):\n", + "with open('data/dsss_test_demod_fixed_05.bin', 'wb') as f:\n", + " for freq in read_freq_log('data/dsss_test_demod_fixed_05.log'):\n", " f.write(struct.pack('f', freq))" ] }, -- cgit