mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 22:35:41 +00:00
allow up to half of constellation distance
This commit is contained in:
parent
fcd5910db4
commit
0ec35d52dd
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ struct Encoder : public Common
|
|||
fdom[j] *= 1 / (scale * symbol_len);
|
||||
cmplx err = fdom[j] - tone[i];
|
||||
value mag = abs(err);
|
||||
value lim = 0.1 * mod_distance();
|
||||
value lim = 0.5 * mod_distance();
|
||||
if (limit && mag > lim)
|
||||
fdom[j] -= ((mag - lim) / mag) * err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue