mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
added mls2_poly
This commit is contained in:
parent
1fa1137fc0
commit
5343144b3c
3 changed files with 6 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue