-
Notifications
You must be signed in to change notification settings - Fork 97
/
gnss.ksy
135 lines (124 loc) · 3.56 KB
/
gnss.ksy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Copyright (C) 2015-2023 Swift Navigation Inc.
# Contact: https://support.swiftnav.com
#
# This source is subject to the license found in the file 'LICENSE' which must
# be distributed together with this source. All other rights reserved.
#
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
#
# Various structs shared between modules
#
# Automatically generated from spec/yaml/swiftnav/sbp/gnss.yaml with generate.py.
# Do not modify by hand!
meta:
id: gnss
endian: le
imports: [ ]
types:
gnss_signal:
doc: |
Signal identifier containing constellation, band, and satellite
identifier.
seq:
- id: sat
doc: |
Constellation-specific satellite id. For GLO can either be (100+FCN)
where FCN is in [-7,+6] or the Slot ID in [1,28].
type: u1
- id: code
doc: |
Signal constellation, band and code
type: u1
sv_id:
doc: |
A (Constellation ID, satellite ID) tuple that uniquely identifies a
space vehicle.
seq:
- id: sat_id
doc: |
Constellation-specific satellite id. For GLO can either be (100+FCN)
where FCN is in [-7,+6] or the Slot ID in [1,28].
type: u1
- id: constellation
doc: |
Constellation ID to which the SV belongs
type: u1
gnss_signal_dep:
doc: |
Deprecated.
seq:
- id: sat
doc: |
Constellation-specific satellite identifier.
Note: unlike GnssSignal, GPS satellites are encoded as (PRN - 1).
Other constellations do not have this offset.
type: u2
- id: code
doc: |
Signal constellation, band and code
type: u1
- id: reserved
doc: |
Reserved
type: u1
gps_time_dep:
doc: |
A wire-appropriate GPS time, defined as the number of milliseconds since
beginning of the week on the Saturday/Sunday transition.
seq:
- id: tow
doc: |
Milliseconds since start of GPS week
type: u4
- id: wn
doc: |
GPS week number
type: u2
gps_time_sec:
doc: |
A GPS time, defined as the number of seconds since beginning of the week
on the Saturday/Sunday transition.
seq:
- id: tow
doc: |
Seconds since start of GPS week
type: u4
- id: wn
doc: |
GPS week number
type: u2
gps_time:
doc: |
A wire-appropriate receiver clock time, defined as the time since the
beginning of the week on the Saturday/Sunday transition. In most cases,
observations are epoch aligned so ns field will be 0.
seq:
- id: tow
doc: |
Milliseconds since start of GPS week
type: u4
- id: ns_residual
doc: |
Nanosecond residual of millisecond-rounded TOW (ranges from -500000
to 500000)
type: s4
- id: wn
doc: |
GPS week number
type: u2
carrier_phase:
doc: |
Carrier phase measurement in cycles represented as a 40-bit fixed point
number with Q32.8 layout, i.e. 32-bits of whole cycles and 8-bits of
fractional cycles. This phase has the same sign as the pseudorange.
seq:
- id: i
doc: |
Carrier phase whole cycles
type: s4
- id: f
doc: |
Carrier phase fractional part
type: u1