mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
update channel smoothly
This commit is contained in:
parent
ff844944c7
commit
9370ce0bcd
1 changed files with 3 additions and 4 deletions
|
|
@ -223,10 +223,9 @@ struct Decoder : Common
|
|||
for (int i = 0; i < tone_count; ++i)
|
||||
demod[tone_count*j+i] *= DSP::polar<value>(1, -tse(i+tone_off));
|
||||
for (int i = 0; i < tone_count; ++i)
|
||||
if (i % block_length == pilot_off)
|
||||
chan[i] = tone[i];
|
||||
else
|
||||
chan[i] *= DSP::polar<value>(1, tse(i+tone_off));
|
||||
chan[i] *= DSP::polar<value>(1, tse(i+tone_off));
|
||||
for (int i = pilot_off; i < tone_count; i += block_length)
|
||||
chan[i] = DSP::lerp(chan[i], tone[i], value(0.5));
|
||||
std::cerr << ".";
|
||||
}
|
||||
std::cerr << " done" << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue