Skip to content

Commit

Permalink
- check the existence of public key file.
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokawa committed Jan 3, 2025
1 parent be6ac36 commit c4af24e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
10 changes: 10 additions & 0 deletions samples/test_osnma.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
"""
test script for Galileo OSNMA
[1] Galileo Open Service Navigation Message Authentication (OSNMA)
Signal-in-Space Interface Control Document (SIS ICD), October, 2023.
[2] Galileo Open Service Navigation Message Authentication (OSNMA)
Receiver Guidelines Issue 1.3, January, 2024.
Note:
to use the package for OSNMA, the user needs to
install the public keys provided by EUSPA.
@author Rui Hirokawa
"""
Expand Down
5 changes: 4 additions & 1 deletion samples/test_osnma_tv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""
test script for Galileo OSNMA based on [1]
test script for Galileo OSNMA based on [2]
[1] Galileo Open Service Navigation Message Authentication (OSNMA)
Signal-in-Space Interface Control Document (SIS ICD), October, 2023.
[2] Galileo Open Service Navigation Message Authentication (OSNMA)
Receiver Guidelines Issue 1.3, January, 2024.
@author Rui Hirokawa
Expand Down
12 changes: 12 additions & 0 deletions samples/test_qznma.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
"""
sample for QZNMA
[1] Quasi-Zenith Satellite System Interface Specification
Satellite Positioning, Navigation and Timing Service (IS-QZSS-PNT-006),
July, 2024
Note:
to use the package for QZSNMA, the user needs to
install the public keys provided by QSS.
@author Rui Hirokawa
"""

import os
from binascii import unhexlify
import numpy as np
from cssrlib.gnss import prn2sat, uGNSS
from cssrlib.qznma import qznma, uNavId
import matplotlib.pyplot as plt

if not os.path.exists('../data/pubkey/qznma/002.der'):
print('please install public key file from QSS.')

dtype = [('wn', 'int'), ('tow', 'float'), ('prn', 'int'),
('type', 'int'), ('len', 'int'), ('nav', 'S512')]
msg_nav_t = {uNavId.GPS_LNAV: 'LNAV', uNavId.GPS_CNAV: 'CNAV',
Expand Down

0 comments on commit c4af24e

Please sign in to comment.