osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.61k stars 760 forks source link

add -L option for leap event emulation #396

Closed jnunyez closed 2 months ago

jnunyez commented 2 months ago

By allowing this three parameters: GPS week number, GPS Day number and delta for next leap second, the user can specify leap events. This is helpful for testing the management of leap events in for example GNSS receivers.

-L <wnslf,dn,dtslf> leap event in GPS week number, day number, next leap second e.g. 2347,3,17

Example: $ ./gps-sdr-sim -e brdc0870.24n -l 42.3569048,-71.2564075,0 -b 8 -d 3600 -T 2024/12/31,23:55 -L 2347,3,17 Using static location mode. xyz = 1516816.7, -4470040.2, 4274982.1 llh = 42.356905, -71.256407, 0.0 Start time = 2024/12/31,23:55:00 (2347:258900) Duration = 3600.0 [sec]

We have successfully tested with HackRF SDR. The bounds for the three parameters wnlsf, dn, dtslf perhaps are not fully accurate.

jnunyez commented 2 months ago

@osqzss @Mictronics this PR is related to 283 and 42