mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
let's have at least one 1 second mode
This commit is contained in:
parent
8067d65477
commit
7946e8e3bb
6 changed files with 25 additions and 37 deletions
|
|
@ -229,11 +229,6 @@ struct Encoder : public Common
|
|||
dest[0] = src[0];
|
||||
for (int i = 1; i < 32768; ++i)
|
||||
dest[i] = src[seq()];
|
||||
} else if (code_order == 16) {
|
||||
CODE::XorShiftMask<int, 16, 1, 1, 14, 1> seq;
|
||||
dest[0] = src[0];
|
||||
for (int i = 1; i < 65536; ++i)
|
||||
dest[i] = src[seq()];
|
||||
}
|
||||
}
|
||||
void guard_interval_weights()
|
||||
|
|
@ -289,7 +284,7 @@ struct Encoder : public Common
|
|||
int bits = mod_bits;
|
||||
if (oper_mode == 2 && k % 32 == 30)
|
||||
bits = 2;
|
||||
if (oper_mode == 6 && k % 64 == 60)
|
||||
if (oper_mode == 7 && k % 64 == 60)
|
||||
bits = 4;
|
||||
tone[i] = map_bits(perm+k, bits);
|
||||
k += bits;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue