mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 22:35:41 +00:00
avoid oversaturation decoder errors at high SNR
This commit is contained in:
parent
186954fd81
commit
3112e07854
1 changed files with 2 additions and 0 deletions
|
|
@ -409,6 +409,8 @@ struct Decoder
|
|||
value precision = sp / np;
|
||||
value snr = DSP::decibel(precision);
|
||||
std::cerr << " " << snr;
|
||||
if (std::is_same<code_type, int8_t>::value && precision > 32)
|
||||
precision = 32;
|
||||
for (int i = 0; i < cons_cols; ++i)
|
||||
mod_soft(code+2*(cons_cols*j+i), cons[cons_cols*j+i], precision);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue