Expand description
GPS L1 C/A code generation, coherent correlation, and acquisition.
The functions here are deterministic time-domain signal primitives. They intentionally keep the same simple operation order as the original Sidereon implementation: C/A chips are generated by clocking the two IS-GPS-200 LFSRs, sampled by zero-order hold, and correlation/acquisition are direct nested sums over samples and Doppler bins.
Structs§
- Acquisition
Grid - Acquisition-grid metadata.
- Acquisition
Options - Options for
acquire. - Acquisition
Result - Result of a 2D code-phase/Doppler acquisition search.
- Correlate
Options - Options for
correlate. - Correlation
Result - Coherent correlation result.
- IqSample
- One complex baseband sample.
- Replica
Options - Options for
replica.
Enums§
- Signal
Error - Error returned by GPS C/A signal helpers.
Constants§
- CA_
CHIP_ RATE_ HZ - GPS C/A chipping rate in chips per second.
- CA_
CODE_ LENGTH - GPS C/A code length in chips.
Functions§
- acquire
- Acquire a PRN by direct 2D code-phase/Doppler search.
- autocorrelation
- Circular autocorrelation over all lags.
- ca_chip
- Return one bipolar chip at a wrapping zero-based index.
- ca_code
- Return the 1023 bipolar (
+1/-1) GPS C/A chips for a PRN. - coherent_
loss - Coherent integration loss from residual frequency error.
- coherent_
loss_ db - Coherent integration loss in decibels.
- correlate
- Coherently correlate a sample record against a PRN replica.
- correlate_
against - Coherent correlation against an explicit sampled code.
- correlation_
at - Single-lag circular correlation.
- cross_
correlation - Circular cross-correlation over all lags.
- replica
- Build a sampled C/A-code replica.
- snr_
post_ db - Post-correlation predetection SNR in dB.