JBKingdon / ADSB_Alert

Experiments with a ADSB warning device
GNU General Public License v2.0
0 stars 0 forks source link

Raw samples > amplitude #2

Open JBKingdon opened 7 months ago

JBKingdon commented 7 months ago

Raw samples will reflect the intermediate frequency output by the R820. Initial implementation working, further work for optimisation.

Processing steps:

JBKingdon commented 7 months ago

Currently taking the average of every buffer to determine the DC offset. Hopefully this can either be a fixed/configurable value or just initialised from the first few seconds of data.

A fixed offset works well for the prototype. How much part to part variation will there be?

JBKingdon commented 7 months ago

Decimation reduces the 8 Msps input rate to 2Msps, offering four positions for phase correction. Need an efficient way to choose the ideal phase. If a buffer contains packets from more than one aircraft they will likely be out of phase, so we probably need to do packet detection and phase correction per packet.

Resolved by not using decimation and performing preamble detection on the filtered samples, so we get phase information per packet.