mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
added option for longer leading noise
This commit is contained in:
parent
53593d3350
commit
20fd39c280
1 changed files with 6 additions and 4 deletions
10
encode.cc
10
encode.cc
|
|
@ -147,12 +147,14 @@ struct Encoder
|
|||
for (int i = 0; i < guard_len; ++i)
|
||||
guard[i] = tdom[i];
|
||||
}
|
||||
void leading_noise()
|
||||
void leading_noise(int num = 1)
|
||||
{
|
||||
CODE::MLS noise(0x163);
|
||||
for (int i = 0; i < tone_count; ++i)
|
||||
tone[i] = nrz(noise());
|
||||
symbol(false);
|
||||
for (int j = 0; j < num; ++j) {
|
||||
for (int i = 0; i < tone_count; ++i)
|
||||
tone[i] = nrz(noise());
|
||||
symbol(false);
|
||||
}
|
||||
}
|
||||
void schmidl_cox()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue