mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 06:26:42 +00:00
Remove new filters and remove extra debugging.
This commit is contained in:
parent
5725e3babe
commit
dcc52ca479
8 changed files with 9 additions and 41 deletions
13
YSFTX.cpp
13
YSFTX.cpp
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#define WANT_DEBUG
|
||||
// #define WANT_DEBUG
|
||||
|
||||
#include "Config.h"
|
||||
#include "Globals.h"
|
||||
|
|
@ -24,20 +24,11 @@
|
|||
|
||||
#include "YSFDefines.h"
|
||||
|
||||
#if defined(ARDUINO_DUE_ZUM_V10) || defined(ARDUINO_DUE_NTH)
|
||||
// Generated using rcosdesign(0.2, 6, 5, 'sqrt') plus a custom filter in MATLAB
|
||||
static q15_t YSF_C4FSK_FILTER[] = {1, 2, 1, -5, -17, -28, -17, 37, 121, 175, 105, -137, -475, -690, -518, 166, 1197, 2114, 2346, 1516, -309,
|
||||
-2550, -4280, -4565, -2827, 885, 5849, 10850, 14549, 15911, 14549, 10850, 5849, 885, -2827, -4565, -4280.
|
||||
-2550, -309, 1516, 2346, 2114, 1197, 166, -518, -690, -475, -137, 105, 175, 121, 37, -17, -28, -17, -5, 1,
|
||||
2, 1, 0};
|
||||
const uint16_t YSF_C4FSK_FILTER_LEN = 60U;
|
||||
#else
|
||||
// Generated using rcosdesign(0.2, 8, 5, 'sqrt') in MATLAB
|
||||
static q15_t YSF_C4FSK_FILTER[] = {401, 104, -340, -731, -847, -553, 112, 909, 1472, 1450, 683, -675, -2144, -3040, -2706, -770, 2667, 6995,
|
||||
11237, 14331, 15464, 14331, 11237, 6995, 2667, -770, -2706, -3040, -2144, -675, 683, 1450, 1472, 909, 112,
|
||||
-553, -847, -731, -340, 104, 401, 0};
|
||||
const uint16_t YSF_C4FSK_FILTER_LEN = 42U;
|
||||
#endif
|
||||
|
||||
const q15_t YSF_LEVEL3 = 809;
|
||||
const q15_t YSF_LEVEL1 = 269;
|
||||
|
|
@ -177,7 +168,7 @@ void CYSFTX::writeByte(uint8_t c)
|
|||
|
||||
void CYSFTX::setTXDelay(uint8_t delay)
|
||||
{
|
||||
m_txDelay = 240U + uint16_t(delay) * 12U; // 200ms + tx delay
|
||||
m_txDelay = 600U + uint16_t(delay) * 12U; // 500ms + tx delay
|
||||
}
|
||||
|
||||
uint16_t CYSFTX::getSpace() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue