add -L option for leap event emulation #396
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.