added mls2_poly

This commit is contained in:
Ahmet Inan 2025-07-11 10:40:56 +02:00
commit 5343144b3c
3 changed files with 6 additions and 5 deletions

View file

@ -298,10 +298,10 @@ struct Decoder : Common
for (int i = pilot_off; i < tone_count; i += block_length)
chan[i] = DSP::lerp(chan[i], tone[i], value(0.5));
}
CODE::MLS seq(0x163, meta_data);
CODE::MLS seq2(mls2_poly, meta_data);
for (int i = 0; i < tone_count; ++i)
if (i % block_length != pilot_off)
demod[i] *= nrz(seq());
demod[i] *= nrz(seq2());
value sp = 0, np = 0;
for (int i = 0, l = k; i < tone_count; ++i) {
cmplx hard(1, 0);