mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
renamed delay to align
This commit is contained in:
parent
826992a2d0
commit
2763a9c2e8
1 changed files with 2 additions and 4 deletions
|
|
@ -42,7 +42,7 @@ struct SchmidlCox
|
|||
DSP::SMA4<cmplx, value, symbol_len, false> cor;
|
||||
DSP::SMA4<value, value, symbol_len, false> pwr;
|
||||
DSP::SMA4<value, value, match_len, false> match;
|
||||
DSP::Delay<value, match_del> delay;
|
||||
DSP::Delay<value, match_del> align;
|
||||
DSP::SchmittTrigger<value> threshold;
|
||||
DSP::FallingEdgeTrigger falling;
|
||||
cmplx tmp0[symbol_len], tmp1[symbol_len];
|
||||
|
|
@ -83,13 +83,11 @@ public:
|
|||
value min_R = 0.0001 * symbol_len;
|
||||
R = std::max(R, min_R);
|
||||
value timing = match(norm(P) / (R * R));
|
||||
value phase = delay(arg(P));
|
||||
value phase = align(arg(P));
|
||||
|
||||
bool collect = threshold(timing);
|
||||
bool process = falling(collect);
|
||||
|
||||
//std::cout << timing << " " << phase << " " << process << std::endl;
|
||||
|
||||
if (!collect && !process)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue