This commit is contained in:
Mark Qvist 2019-02-09 09:57:22 +01:00
parent ae0a53d9eb
commit 16e989c680
2 changed files with 2 additions and 7 deletions

View File

@ -1,2 +1,2 @@
OpenModem Dev Repo
OpenModem
==========

View File

@ -129,20 +129,15 @@ inline static uint8_t sinSample(uint16_t i) {
#define DCD_TIMEOUT_SAMPLES CONFIG_ADC_SAMPLERATE/100
#define DCD_MIN_COUNT CONFIG_ADC_SAMPLERATE/1600
#endif
// TODO: Revamp filtering
#if BITRATE == 1200
#define FILTER_CUTOFF 500
#define MARK_FREQ 1200
#define SPACE_FREQ 2200
#elif BITRATE == 2400
// TODO: Determine best filter cutoff
// #define FILTER_CUTOFF 772
#define FILTER_CUTOFF 1000
#define MARK_FREQ 2165
#define SPACE_FREQ 3970
//#define MARK_FREQ 2200
//#define SPACE_FREQ 4000
#elif BITRATE == 300
#define FILTER_CUTOFF 500
#define MARK_FREQ 1600