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:
Nick Foster 2013-08-04 22:20:15 -07:00
parent 8e1bdafc51
commit 1630e67c3b

View File

@ -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);
for(int j=0; j<240; j++) {
out[j] = in[i+j*d_samples_per_chip] - inavg[i];
}
//get the timestamp of the preamble