mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
simplified demodulation or erase function
This commit is contained in:
parent
5677a7163b
commit
9c29a0a08d
1 changed files with 6 additions and 6 deletions
12
decode.cc
12
decode.cc
|
|
@ -70,12 +70,12 @@ struct Decoder : Common
|
|||
}
|
||||
static cmplx demod_or_erase(cmplx curr, cmplx prev)
|
||||
{
|
||||
if (!(norm(prev) > 0))
|
||||
return 0;
|
||||
cmplx demod = curr / prev;
|
||||
if (!(norm(demod) <= 4))
|
||||
return 0;
|
||||
return demod;
|
||||
if (norm(prev) > 0) {
|
||||
cmplx demod = curr / prev;
|
||||
if (norm(demod) < 4)
|
||||
return demod;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
const cmplx *mls0_seq()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue