A Julia package for generating GNSS spreading codes and signals.
- GPS L1 (BPSK)
- GPS L5 (BPSK with Neuman-Hofman secondary code)
- Galileo E1B (CBOC modulation)
- Highly optimized code generation using fixed-point arithmetic for real-time signal processing
julia> ]
pkg> add GNSSSignalsusing GNSSSignals
using Unitful: MHz
gpsl1 = GPSL1()
prn = 1
# Generate 1 ms of sampled code at 4 MHz
sampled_code = gen_code(4000, gpsl1, prn, 4MHz)
# For repeated calls, use the in-place version
buffer = zeros(Int16, 4000)
gen_code!(buffer, gpsl1, prn, 4MHz)For detailed usage instructions and API reference, see the documentation.