From 9af18071222335122511b86c1537c667f5604ad3 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 13 May 2020 17:29:56 +0200 Subject: [PATCH] chg: psk demodualtion, lets keep those starting samples to easily find the zero init bit --- client/src/cmdlft55xx.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/client/src/cmdlft55xx.c b/client/src/cmdlft55xx.c index 3c0c46077..48ff6dab2 100644 --- a/client/src/cmdlft55xx.c +++ b/client/src/cmdlft55xx.c @@ -960,24 +960,14 @@ bool DecodeT55xxBlock(void) { ans = ASKDemod_ext(cmdStr, false, false, 1, &ST); break; case DEMOD_PSK1: - // skip first 160 samples to allow antenna to settle in (psk gets inverted occasionally otherwise) - save_restoreGB(GRAPH_SAVE); - CmdLtrim("150"); snprintf(cmdStr, sizeof(buf), "%d %d 6", bitRate[config.bitrate], config.inverted); ans = PSKDemod(cmdStr, false); - //undo trim samples - save_restoreGB(GRAPH_RESTORE); break; case DEMOD_PSK2: //inverted won't affect this case DEMOD_PSK3: //not fully implemented - // skip first 160 samples to allow antenna to settle in (psk gets inverted occasionally otherwise) - save_restoreGB(GRAPH_SAVE); - CmdLtrim("150"); snprintf(cmdStr, sizeof(buf), "%d 0 6", bitRate[config.bitrate]); ans = PSKDemod(cmdStr, false); psk1TOpsk2(DemodBuffer, DemodBufferLen); - //undo trim samples - save_restoreGB(GRAPH_RESTORE); break; case DEMOD_NRZ: snprintf(cmdStr, sizeof(buf), "%d %d 1", bitRate[config.bitrate], config.inverted);