Preamble subtracts average (LPF'ed) input from samples. This has the effect only
of improving the slicer threshold to exactly 0.5.
This commit is contained in:
parent
8e1bdafc51
commit
1630e67c3b
@ -176,16 +176,8 @@ int air_modes_preamble::general_work(int noutput_items,
|
||||
}
|
||||
|
||||
//all right i'm prepared to call this a preamble
|
||||
//let's integrate and dump the output
|
||||
//FIXME: disable and use center sample
|
||||
bool life_sucks = true;
|
||||
if(life_sucks) {
|
||||
for(int j=0; j<240; j++) {
|
||||
out[j] = in[i+j*d_samples_per_chip];
|
||||
}
|
||||
} else {
|
||||
i -= d_samples_per_chip-1;
|
||||
integrate_and_dump(out, &in[i], 240, d_samples_per_chip);
|
||||
out[j] = in[i+j*d_samples_per_chip] - inavg[i];
|
||||
}
|
||||
|
||||
//get the timestamp of the preamble
|
||||
|
Loading…
Reference in New Issue
Block a user