From 0a1c0716ede3c8c3b84f6c137bc15c12c6b4aec7 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 7 Apr 2014 13:43:50 +0200 Subject: [PATCH] Preamble timing --- Modem/afsk.c | 2 +- Modem/config.h | 2 +- buildrev.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modem/afsk.c b/Modem/afsk.c index b16ffa1..fd2c0f2 100644 --- a/Modem/afsk.c +++ b/Modem/afsk.c @@ -281,7 +281,7 @@ void afsk_adc_isr(Afsk *afsk, int8_t currentSample) { afsk->iirY[0] = afsk->iirY[1]; - //af->iirY[1] = afsk->iirX[0] + afsk->iirX[1] + (afsk->iirY[0] >> 1) + (afsk->iirY[0] >> 3) + (afsk->iirY[0] >> 5); // Butterworth + //afsk->iirY[1] = afsk->iirX[0] + afsk->iirX[1] + (afsk->iirY[0] >> 1) + (afsk->iirY[0] >> 3) + (afsk->iirY[0] >> 5); // Butterworth afsk->iirY[1] = afsk->iirX[0] + afsk->iirX[1] + (afsk->iirY[0] >> 1); // Chebyshev diff --git a/Modem/config.h b/Modem/config.h index b44486a..d032a76 100644 --- a/Modem/config.h +++ b/Modem/config.h @@ -11,7 +11,7 @@ #define CONFIG_AFSK_RXTIMEOUT 0 // How long a read operation from the modem // will wait for data before timing out. -#define CONFIG_AFSK_PREAMBLE_LEN 1000UL // The length of the packet preamble in milliseconds +#define CONFIG_AFSK_PREAMBLE_LEN 350UL // The length of the packet preamble in milliseconds #define CONFIG_AFSK_TRAILER_LEN 100UL // The length of the packet tail in milliseconds #endif \ No newline at end of file diff --git a/buildrev.h b/buildrev.h index e1d8ca6..05a6c74 100644 --- a/buildrev.h +++ b/buildrev.h @@ -1,2 +1,2 @@ -#define VERS_BUILD 439 +#define VERS_BUILD 444 #define VERS_HOST "vixen"