Update constants for M17 demodulation
Constants were updated to increase performance based on baseband sample collected with Module17. TG-81
This commit is contained in:
parent
2d8c696a09
commit
ca49b306b9
|
|
@ -112,9 +112,9 @@ private:
|
||||||
static constexpr size_t M17_SAMPLES_PER_SYMBOL = M17_RX_SAMPLE_RATE / M17_SYMBOL_RATE;
|
static constexpr size_t M17_SAMPLES_PER_SYMBOL = M17_RX_SAMPLE_RATE / M17_SYMBOL_RATE;
|
||||||
static constexpr size_t M17_INPUT_BUF_SIZE = 2 * M17_FRAME_SAMPLES_24K;
|
static constexpr size_t M17_INPUT_BUF_SIZE = 2 * M17_FRAME_SAMPLES_24K;
|
||||||
static constexpr size_t M17_FRAME_BYTES = M17_FRAME_SYMBOLS / 4;
|
static constexpr size_t M17_FRAME_BYTES = M17_FRAME_SYMBOLS / 4;
|
||||||
static constexpr float conv_stats_alpha = 0.0001f;
|
static constexpr float conv_stats_alpha = 0.001f;
|
||||||
static constexpr float qnt_stats_alpha = 0.99999f;
|
static constexpr float qnt_stats_alpha = 0.99995f;
|
||||||
static constexpr float conv_threshold_factor = 3.70;
|
static constexpr float conv_threshold_factor = 3.40;
|
||||||
static constexpr size_t M17_BRIDGE_SIZE = M17_SAMPLES_PER_SYMBOL *
|
static constexpr size_t M17_BRIDGE_SIZE = M17_SAMPLES_PER_SYMBOL *
|
||||||
M17_SYNCWORD_SYMBOLS;
|
M17_SYNCWORD_SYMBOLS;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ void M17Demodulator::stopBasebandSampling()
|
||||||
void M17Demodulator::resetCorrelationStats()
|
void M17Demodulator::resetCorrelationStats()
|
||||||
{
|
{
|
||||||
conv_ema = 0.0f;
|
conv_ema = 0.0f;
|
||||||
conv_emvar = 1000000000.0f;
|
conv_emvar = 800000000.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -308,7 +308,7 @@ void M17Demodulator::update()
|
||||||
{
|
{
|
||||||
locked = true;
|
locked = true;
|
||||||
isLSF = syncword.lsf;
|
isLSF = syncword.lsf;
|
||||||
offset = syncword.index + 2;
|
offset = syncword.index + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// While we are locked, demodulate available samples
|
// While we are locked, demodulate available samples
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue