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:
@@ -176,16 +176,8 @@ int air_modes_preamble::general_work(int noutput_items,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//all right i'm prepared to call this a preamble
|
//all right i'm prepared to call this a preamble
|
||||||
//let's integrate and dump the output
|
for(int j=0; j<240; j++) {
|
||||||
//FIXME: disable and use center sample
|
out[j] = in[i+j*d_samples_per_chip] - inavg[i];
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the timestamp of the preamble
|
//get the timestamp of the preamble
|
||||||
|
|||||||
Reference in New Issue
Block a user