From cd77e8ae76d85ef73fbba43c6ddd521a00a473c1 Mon Sep 17 00:00:00 2001 From: Wojciech Kaczmarski <44336093+sp5wwp@users.noreply.github.com> Date: Fri, 22 Sep 2023 09:10:39 +0200 Subject: [PATCH] `m17-decoder-sym` - syncword detection update --- SP5WWP/m17-decoder/m17-decoder-sym.c | 49 +++++++++++++++------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/SP5WWP/m17-decoder/m17-decoder-sym.c b/SP5WWP/m17-decoder/m17-decoder-sym.c index 1997bc1..7403026 100644 --- a/SP5WWP/m17-decoder/m17-decoder-sym.c +++ b/SP5WWP/m17-decoder/m17-decoder-sym.c @@ -91,6 +91,18 @@ void decode_callsign(uint8_t *outp, const uint8_t *inp) outp[i]=0; } +float eucl_norm(const float* in1, const int8_t* in2, uint8_t len) +{ + float tmp = 0.0f; + + for(uint8_t i=0; iXCORR_THRESH) //Frame syncword detected + if(dist