mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 22:35:41 +00:00
signal mode using pilots of the first symbol only
This commit is contained in:
parent
0ec35d52dd
commit
3755c666aa
2 changed files with 15 additions and 9 deletions
|
|
@ -275,12 +275,14 @@ struct Encoder : public Common
|
|||
polar_encoder(code, mesg, frozen_bits, code_order);
|
||||
shuffle(perm, code);
|
||||
CODE::MLS seq1(mls1_poly);
|
||||
for (int j = 0, k = 0; j < symbol_count; ++j) {
|
||||
for (int j = 0, k = 0, m = 0; j < symbol_count; ++j) {
|
||||
pilot_off = (block_skew * j + first_pilot) % block_length;
|
||||
reserved_off = (block_skew * j + first_reserved) % block_length;
|
||||
for (int i = 0, m = 0; i < tone_count; ++i) {
|
||||
for (int i = 0; i < tone_count; ++i) {
|
||||
if (i % block_length == pilot_off) {
|
||||
tone[i] = nrz(seq1()) * mode[m++];
|
||||
tone[i] = nrz(seq1());
|
||||
if (j == 0)
|
||||
tone[i] *= mode[m++];
|
||||
} else if (i % block_length == reserved_off) {
|
||||
tone[i] = 0;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue