mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
don't need the Hadamard encoder for mode zero
This commit is contained in:
parent
5b99d357bf
commit
ff844944c7
1 changed files with 5 additions and 4 deletions
|
|
@ -234,13 +234,14 @@ struct Encoder : public Common
|
|||
guard_interval_weights();
|
||||
papr_min = 1000, papr_max = -1000;
|
||||
leading_noise();
|
||||
hadamard_encoder(mode, oper_mode);
|
||||
if (!oper_mode) {
|
||||
if (oper_mode) {
|
||||
hadamard_encoder(mode, oper_mode);
|
||||
} else {
|
||||
schmidl_cox();
|
||||
CODE::MLS seq1(mls1_poly);
|
||||
for (int i = 0, m = 0; i < tone_count; ++i) {
|
||||
for (int i = 0; i < tone_count; ++i) {
|
||||
if (i % block_length == first_pilot) {
|
||||
tone[i] = nrz(seq1()) * mode[m++];
|
||||
tone[i] = nrz(seq1());
|
||||
} else {
|
||||
tone[i] = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue