gnss-js 1.14.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-YIHO74OS.js → chunk-BEQSEJMU.js} +390 -67
- package/dist/{chunk-FGRC3PB3.js → chunk-BRT6XZ7B.js} +4 -3
- package/dist/{chunk-SWKWJEGY.js → chunk-I4UV45NT.js} +269 -15
- package/dist/{chunk-E5CP37P2.js → chunk-QXZZNXE3.js} +1 -1
- package/dist/index.cjs +672 -99
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +53 -41
- package/dist/novatel.cjs +357 -14
- package/dist/novatel.d.cts +69 -1
- package/dist/novatel.d.ts +69 -1
- package/dist/novatel.js +11 -1
- package/dist/orbit.js +2 -2
- package/dist/positioning.js +3 -3
- package/dist/rtcm3.cjs +91 -8
- package/dist/rtcm3.d.cts +8 -0
- package/dist/rtcm3.d.ts +8 -0
- package/dist/rtcm3.js +2 -1
- package/dist/sbf.cjs +478 -68
- package/dist/sbf.d.cts +138 -1
- package/dist/sbf.d.ts +138 -1
- package/dist/sbf.js +9 -3
- package/package.json +1 -1
- package/dist/{chunk-VAHMHYID.js → chunk-OMVL3X7V.js} +3 -3
package/dist/sbf.d.cts
CHANGED
|
@@ -1,3 +1,139 @@
|
|
|
1
|
+
import { E as Ephemeris } from './nav-BAI1a9vK.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Septentrio SBF decoded navigation and almanac blocks.
|
|
5
|
+
*
|
|
6
|
+
* Nav blocks (GPSNav 5891, GLONav 4004, GALNav 4002, BDSNav 4081,
|
|
7
|
+
* QZSNav 4095) carry the fully decoded broadcast ephemeris; they are
|
|
8
|
+
* mapped onto the same `Ephemeris` union the RINEX nav parser produces,
|
|
9
|
+
* with identical units and conventions (sqrtA in m^1/2, angles in rad,
|
|
10
|
+
* semicircle fields scaled by π, GLONASS tauN with the RINEX sign, BDS
|
|
11
|
+
* epochs/weeks on the BDT scale like a RINEX file).
|
|
12
|
+
*
|
|
13
|
+
* Almanac blocks (GPSAlm 5892, GALAlm 4003, GLOAlm 4005, BDSAlm 4119)
|
|
14
|
+
* are decoded into dedicated types with all per-system relative fields
|
|
15
|
+
* (GPS/BDS δi, Galileo δi and ΔsqrtA) normalized to absolute values.
|
|
16
|
+
*
|
|
17
|
+
* Ported from RTKLIB demo5 (rtklibexplorer), src/rcv/septentrio.c
|
|
18
|
+
* (decode_gpsnav / decode_glonav / decode_galnav / decode_cmpnav /
|
|
19
|
+
* decode_qzssnav / decode_gpsalm / decode_galalm / decode_cmpalm),
|
|
20
|
+
* BSD-2-Clause, and cross-checked field by field against the Septentrio
|
|
21
|
+
* mosaic-X5 reference guide, which also supplies the GLOAlm layout
|
|
22
|
+
* (not decoded by RTKLIB).
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
interface SbfNavResult {
|
|
26
|
+
ephemerides: Ephemeris[];
|
|
27
|
+
/** Frames whose CRC failed (corruption indicator). */
|
|
28
|
+
badCrc: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Decode every GPSNav/GLONav/GALNav/BDSNav/QZSNav block in an SBF byte
|
|
32
|
+
* stream into the RINEX-parser `Ephemeris` union. Every block is
|
|
33
|
+
* emitted (no issue-of-data dedup); other block types are skipped.
|
|
34
|
+
*/
|
|
35
|
+
declare function parseSbfNav(data: Uint8Array): SbfNavResult;
|
|
36
|
+
/**
|
|
37
|
+
* GPS / Galileo / BeiDou almanac, normalized to ABSOLUTE Keplerian
|
|
38
|
+
* elements (units matching `KeplerEphemeris`: sqrtA in m^1/2, angles
|
|
39
|
+
* in rad, rates in rad/s) so a Kepler propagator can consume the
|
|
40
|
+
* record directly with all correction terms at zero.
|
|
41
|
+
*
|
|
42
|
+
* Normalizations applied per system:
|
|
43
|
+
* - GPS (`G`): the SIS δi (relative to 0.3 semicircles) is folded in —
|
|
44
|
+
* `i0OrDeltaI` = 0.3π + δi·π. `weekAlm` is the full GPS week
|
|
45
|
+
* (8-bit SIS week disambiguated against the receiver week).
|
|
46
|
+
* - Galileo (`E`): the SIS ΔsqrtA (relative to √29 600 000 m^1/2) and
|
|
47
|
+
* δi (relative to 56°) are folded in — `sqrtA` and `i0OrDeltaI` are
|
|
48
|
+
* absolute. `weekAlm` is the full GPS-aligned week (2-bit SIS week
|
|
49
|
+
* disambiguated). `health` is the raw SBF bit field: bit 0 set ⇒
|
|
50
|
+
* bits 1-2 are the L1-B HS, bit 3 set ⇒ bits 4-5 E5b HS, bit 6 set
|
|
51
|
+
* ⇒ bits 7-8 E5a HS (0 = healthy).
|
|
52
|
+
* - BeiDou (`C`): δi is relative to 0.3 semicircles for MEO/IGSO and
|
|
53
|
+
* to 0 for GEO satellites (PRN 1-5 and 59-63) per the BDS ICD; the
|
|
54
|
+
* reference is folded in. `weekAlm` is the full BDS week (add 1356
|
|
55
|
+
* for the GPS week) and `toaSec` is BDT seconds of week
|
|
56
|
+
* (BDT = GPST − 14 s). `health` is the 9-bit SIS health word.
|
|
57
|
+
*/
|
|
58
|
+
interface SbfKeplerAlmanac {
|
|
59
|
+
system: 'G' | 'E' | 'C';
|
|
60
|
+
/** Satellite PRN, e.g. "G14". */
|
|
61
|
+
prn: string;
|
|
62
|
+
/** Full almanac reference week (see per-system notes above). */
|
|
63
|
+
weekAlm: number;
|
|
64
|
+
/** Almanac reference time of week in seconds (system time scale). */
|
|
65
|
+
toaSec: number;
|
|
66
|
+
/** Square root of semi-major axis in m^(1/2), absolute. */
|
|
67
|
+
sqrtA: number;
|
|
68
|
+
/** Eccentricity (dimensionless). */
|
|
69
|
+
e: number;
|
|
70
|
+
/** Inclination at reference time in rad, absolute (normalized). */
|
|
71
|
+
i0OrDeltaI: number;
|
|
72
|
+
/** Longitude of ascending node at the weekly epoch in rad. */
|
|
73
|
+
omega0: number;
|
|
74
|
+
/** Argument of perigee in rad. */
|
|
75
|
+
omega: number;
|
|
76
|
+
/** Mean anomaly at reference time in rad. */
|
|
77
|
+
m0: number;
|
|
78
|
+
/** Rate of right ascension in rad/s. */
|
|
79
|
+
omegaDot: number;
|
|
80
|
+
/** SV clock bias in seconds. */
|
|
81
|
+
af0: number;
|
|
82
|
+
/** SV clock drift in s/s. */
|
|
83
|
+
af1: number;
|
|
84
|
+
/** Health word, 0 = healthy (see per-system notes above). */
|
|
85
|
+
health: number;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* GLONASS almanac (GLONASS ICD orbital parameters). Semicircle fields
|
|
89
|
+
* are converted to radians; everything else keeps the ICD units.
|
|
90
|
+
*/
|
|
91
|
+
interface SbfGlonassAlmanac {
|
|
92
|
+
system: 'R';
|
|
93
|
+
/** Satellite slot, e.g. "R05". */
|
|
94
|
+
prn: string;
|
|
95
|
+
/** Frequency channel number HnA (−7…+6). */
|
|
96
|
+
freqNr: number;
|
|
97
|
+
/** Full GPS week of the almanac reference time. */
|
|
98
|
+
weekAlm: number;
|
|
99
|
+
/** Almanac reference time of week in seconds, GPS time frame. */
|
|
100
|
+
toaSec: number;
|
|
101
|
+
/** εnA: orbit eccentricity. */
|
|
102
|
+
epsilon: number;
|
|
103
|
+
/** λnA: longitude of first ascending node in rad. */
|
|
104
|
+
lambda: number;
|
|
105
|
+
/** tλnA: time of first ascending node passage in s of day. */
|
|
106
|
+
tLambda: number;
|
|
107
|
+
/** ΔinA: inclination correction to 63° in rad. */
|
|
108
|
+
deltaI: number;
|
|
109
|
+
/** ωnA: argument of perigee in rad. */
|
|
110
|
+
omega: number;
|
|
111
|
+
/** ΔTnA: correction to the mean Draconian period (s / orbit). */
|
|
112
|
+
deltaT: number;
|
|
113
|
+
/** dΔTnA: rate of change of ΔT (s / orbit²). */
|
|
114
|
+
deltaTDot: number;
|
|
115
|
+
/** τnA: coarse satellite clock correction in s. */
|
|
116
|
+
tau: number;
|
|
117
|
+
/** CnA general health flag: 1 = healthy. */
|
|
118
|
+
health: number;
|
|
119
|
+
/** NA: calendar day number within the 4-year period. */
|
|
120
|
+
nDay: number;
|
|
121
|
+
/** N4: 4-year interval number since 1996. */
|
|
122
|
+
n4: number;
|
|
123
|
+
}
|
|
124
|
+
type SbfAlmanac = SbfKeplerAlmanac | SbfGlonassAlmanac;
|
|
125
|
+
interface SbfAlmanacResult {
|
|
126
|
+
almanacs: SbfAlmanac[];
|
|
127
|
+
/** Frames whose CRC failed (corruption indicator). */
|
|
128
|
+
badCrc: number;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Decode every GPSAlm/GALAlm/GLOAlm/BDSAlm block in an SBF byte
|
|
132
|
+
* stream. Every block is emitted in stream order; other block types
|
|
133
|
+
* are skipped.
|
|
134
|
+
*/
|
|
135
|
+
declare function parseSbfAlmanac(data: Uint8Array): SbfAlmanacResult;
|
|
136
|
+
|
|
1
137
|
/**
|
|
2
138
|
* Septentrio SBF raw-measurement decoding (MeasEpoch + Meas3) — the
|
|
3
139
|
* path from a receiver log to RINEX-grade observables.
|
|
@@ -23,6 +159,7 @@
|
|
|
23
159
|
* Septentrio mosaic-X5 reference guide (the guide documents MeasEpoch
|
|
24
160
|
* fully; the Meas3 bit layout is only public through that decoder).
|
|
25
161
|
*/
|
|
162
|
+
|
|
26
163
|
interface SbfMeasurement {
|
|
27
164
|
/** RINEX PRN, e.g. "G04", "R11", "S23" (SBAS PRN-100). */
|
|
28
165
|
prn: string;
|
|
@@ -60,4 +197,4 @@ interface SbfParseResult {
|
|
|
60
197
|
*/
|
|
61
198
|
declare function parseSbfMeas(data: Uint8Array): SbfParseResult;
|
|
62
199
|
|
|
63
|
-
export { type SbfMeasEpoch, type SbfMeasurement, type SbfParseResult, parseSbfMeas };
|
|
200
|
+
export { type SbfAlmanac, type SbfAlmanacResult, type SbfGlonassAlmanac, type SbfKeplerAlmanac, type SbfMeasEpoch, type SbfMeasurement, type SbfNavResult, type SbfParseResult, parseSbfAlmanac, parseSbfMeas, parseSbfNav };
|
package/dist/sbf.d.ts
CHANGED
|
@@ -1,3 +1,139 @@
|
|
|
1
|
+
import { E as Ephemeris } from './nav-BAI1a9vK.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Septentrio SBF decoded navigation and almanac blocks.
|
|
5
|
+
*
|
|
6
|
+
* Nav blocks (GPSNav 5891, GLONav 4004, GALNav 4002, BDSNav 4081,
|
|
7
|
+
* QZSNav 4095) carry the fully decoded broadcast ephemeris; they are
|
|
8
|
+
* mapped onto the same `Ephemeris` union the RINEX nav parser produces,
|
|
9
|
+
* with identical units and conventions (sqrtA in m^1/2, angles in rad,
|
|
10
|
+
* semicircle fields scaled by π, GLONASS tauN with the RINEX sign, BDS
|
|
11
|
+
* epochs/weeks on the BDT scale like a RINEX file).
|
|
12
|
+
*
|
|
13
|
+
* Almanac blocks (GPSAlm 5892, GALAlm 4003, GLOAlm 4005, BDSAlm 4119)
|
|
14
|
+
* are decoded into dedicated types with all per-system relative fields
|
|
15
|
+
* (GPS/BDS δi, Galileo δi and ΔsqrtA) normalized to absolute values.
|
|
16
|
+
*
|
|
17
|
+
* Ported from RTKLIB demo5 (rtklibexplorer), src/rcv/septentrio.c
|
|
18
|
+
* (decode_gpsnav / decode_glonav / decode_galnav / decode_cmpnav /
|
|
19
|
+
* decode_qzssnav / decode_gpsalm / decode_galalm / decode_cmpalm),
|
|
20
|
+
* BSD-2-Clause, and cross-checked field by field against the Septentrio
|
|
21
|
+
* mosaic-X5 reference guide, which also supplies the GLOAlm layout
|
|
22
|
+
* (not decoded by RTKLIB).
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
interface SbfNavResult {
|
|
26
|
+
ephemerides: Ephemeris[];
|
|
27
|
+
/** Frames whose CRC failed (corruption indicator). */
|
|
28
|
+
badCrc: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Decode every GPSNav/GLONav/GALNav/BDSNav/QZSNav block in an SBF byte
|
|
32
|
+
* stream into the RINEX-parser `Ephemeris` union. Every block is
|
|
33
|
+
* emitted (no issue-of-data dedup); other block types are skipped.
|
|
34
|
+
*/
|
|
35
|
+
declare function parseSbfNav(data: Uint8Array): SbfNavResult;
|
|
36
|
+
/**
|
|
37
|
+
* GPS / Galileo / BeiDou almanac, normalized to ABSOLUTE Keplerian
|
|
38
|
+
* elements (units matching `KeplerEphemeris`: sqrtA in m^1/2, angles
|
|
39
|
+
* in rad, rates in rad/s) so a Kepler propagator can consume the
|
|
40
|
+
* record directly with all correction terms at zero.
|
|
41
|
+
*
|
|
42
|
+
* Normalizations applied per system:
|
|
43
|
+
* - GPS (`G`): the SIS δi (relative to 0.3 semicircles) is folded in —
|
|
44
|
+
* `i0OrDeltaI` = 0.3π + δi·π. `weekAlm` is the full GPS week
|
|
45
|
+
* (8-bit SIS week disambiguated against the receiver week).
|
|
46
|
+
* - Galileo (`E`): the SIS ΔsqrtA (relative to √29 600 000 m^1/2) and
|
|
47
|
+
* δi (relative to 56°) are folded in — `sqrtA` and `i0OrDeltaI` are
|
|
48
|
+
* absolute. `weekAlm` is the full GPS-aligned week (2-bit SIS week
|
|
49
|
+
* disambiguated). `health` is the raw SBF bit field: bit 0 set ⇒
|
|
50
|
+
* bits 1-2 are the L1-B HS, bit 3 set ⇒ bits 4-5 E5b HS, bit 6 set
|
|
51
|
+
* ⇒ bits 7-8 E5a HS (0 = healthy).
|
|
52
|
+
* - BeiDou (`C`): δi is relative to 0.3 semicircles for MEO/IGSO and
|
|
53
|
+
* to 0 for GEO satellites (PRN 1-5 and 59-63) per the BDS ICD; the
|
|
54
|
+
* reference is folded in. `weekAlm` is the full BDS week (add 1356
|
|
55
|
+
* for the GPS week) and `toaSec` is BDT seconds of week
|
|
56
|
+
* (BDT = GPST − 14 s). `health` is the 9-bit SIS health word.
|
|
57
|
+
*/
|
|
58
|
+
interface SbfKeplerAlmanac {
|
|
59
|
+
system: 'G' | 'E' | 'C';
|
|
60
|
+
/** Satellite PRN, e.g. "G14". */
|
|
61
|
+
prn: string;
|
|
62
|
+
/** Full almanac reference week (see per-system notes above). */
|
|
63
|
+
weekAlm: number;
|
|
64
|
+
/** Almanac reference time of week in seconds (system time scale). */
|
|
65
|
+
toaSec: number;
|
|
66
|
+
/** Square root of semi-major axis in m^(1/2), absolute. */
|
|
67
|
+
sqrtA: number;
|
|
68
|
+
/** Eccentricity (dimensionless). */
|
|
69
|
+
e: number;
|
|
70
|
+
/** Inclination at reference time in rad, absolute (normalized). */
|
|
71
|
+
i0OrDeltaI: number;
|
|
72
|
+
/** Longitude of ascending node at the weekly epoch in rad. */
|
|
73
|
+
omega0: number;
|
|
74
|
+
/** Argument of perigee in rad. */
|
|
75
|
+
omega: number;
|
|
76
|
+
/** Mean anomaly at reference time in rad. */
|
|
77
|
+
m0: number;
|
|
78
|
+
/** Rate of right ascension in rad/s. */
|
|
79
|
+
omegaDot: number;
|
|
80
|
+
/** SV clock bias in seconds. */
|
|
81
|
+
af0: number;
|
|
82
|
+
/** SV clock drift in s/s. */
|
|
83
|
+
af1: number;
|
|
84
|
+
/** Health word, 0 = healthy (see per-system notes above). */
|
|
85
|
+
health: number;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* GLONASS almanac (GLONASS ICD orbital parameters). Semicircle fields
|
|
89
|
+
* are converted to radians; everything else keeps the ICD units.
|
|
90
|
+
*/
|
|
91
|
+
interface SbfGlonassAlmanac {
|
|
92
|
+
system: 'R';
|
|
93
|
+
/** Satellite slot, e.g. "R05". */
|
|
94
|
+
prn: string;
|
|
95
|
+
/** Frequency channel number HnA (−7…+6). */
|
|
96
|
+
freqNr: number;
|
|
97
|
+
/** Full GPS week of the almanac reference time. */
|
|
98
|
+
weekAlm: number;
|
|
99
|
+
/** Almanac reference time of week in seconds, GPS time frame. */
|
|
100
|
+
toaSec: number;
|
|
101
|
+
/** εnA: orbit eccentricity. */
|
|
102
|
+
epsilon: number;
|
|
103
|
+
/** λnA: longitude of first ascending node in rad. */
|
|
104
|
+
lambda: number;
|
|
105
|
+
/** tλnA: time of first ascending node passage in s of day. */
|
|
106
|
+
tLambda: number;
|
|
107
|
+
/** ΔinA: inclination correction to 63° in rad. */
|
|
108
|
+
deltaI: number;
|
|
109
|
+
/** ωnA: argument of perigee in rad. */
|
|
110
|
+
omega: number;
|
|
111
|
+
/** ΔTnA: correction to the mean Draconian period (s / orbit). */
|
|
112
|
+
deltaT: number;
|
|
113
|
+
/** dΔTnA: rate of change of ΔT (s / orbit²). */
|
|
114
|
+
deltaTDot: number;
|
|
115
|
+
/** τnA: coarse satellite clock correction in s. */
|
|
116
|
+
tau: number;
|
|
117
|
+
/** CnA general health flag: 1 = healthy. */
|
|
118
|
+
health: number;
|
|
119
|
+
/** NA: calendar day number within the 4-year period. */
|
|
120
|
+
nDay: number;
|
|
121
|
+
/** N4: 4-year interval number since 1996. */
|
|
122
|
+
n4: number;
|
|
123
|
+
}
|
|
124
|
+
type SbfAlmanac = SbfKeplerAlmanac | SbfGlonassAlmanac;
|
|
125
|
+
interface SbfAlmanacResult {
|
|
126
|
+
almanacs: SbfAlmanac[];
|
|
127
|
+
/** Frames whose CRC failed (corruption indicator). */
|
|
128
|
+
badCrc: number;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Decode every GPSAlm/GALAlm/GLOAlm/BDSAlm block in an SBF byte
|
|
132
|
+
* stream. Every block is emitted in stream order; other block types
|
|
133
|
+
* are skipped.
|
|
134
|
+
*/
|
|
135
|
+
declare function parseSbfAlmanac(data: Uint8Array): SbfAlmanacResult;
|
|
136
|
+
|
|
1
137
|
/**
|
|
2
138
|
* Septentrio SBF raw-measurement decoding (MeasEpoch + Meas3) — the
|
|
3
139
|
* path from a receiver log to RINEX-grade observables.
|
|
@@ -23,6 +159,7 @@
|
|
|
23
159
|
* Septentrio mosaic-X5 reference guide (the guide documents MeasEpoch
|
|
24
160
|
* fully; the Meas3 bit layout is only public through that decoder).
|
|
25
161
|
*/
|
|
162
|
+
|
|
26
163
|
interface SbfMeasurement {
|
|
27
164
|
/** RINEX PRN, e.g. "G04", "R11", "S23" (SBAS PRN-100). */
|
|
28
165
|
prn: string;
|
|
@@ -60,4 +197,4 @@ interface SbfParseResult {
|
|
|
60
197
|
*/
|
|
61
198
|
declare function parseSbfMeas(data: Uint8Array): SbfParseResult;
|
|
62
199
|
|
|
63
|
-
export { type SbfMeasEpoch, type SbfMeasurement, type SbfParseResult, parseSbfMeas };
|
|
200
|
+
export { type SbfAlmanac, type SbfAlmanacResult, type SbfGlonassAlmanac, type SbfKeplerAlmanac, type SbfMeasEpoch, type SbfMeasurement, type SbfNavResult, type SbfParseResult, parseSbfAlmanac, parseSbfMeas, parseSbfNav };
|
package/dist/sbf.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
parseSbfAlmanac,
|
|
3
|
+
parseSbfMeas,
|
|
4
|
+
parseSbfNav
|
|
5
|
+
} from "./chunk-BEQSEJMU.js";
|
|
6
|
+
import "./chunk-HVXYFUCB.js";
|
|
7
|
+
import "./chunk-LEEU5OIO.js";
|
|
4
8
|
export {
|
|
5
|
-
|
|
9
|
+
parseSbfAlmanac,
|
|
10
|
+
parseSbfMeas,
|
|
11
|
+
parseSbfNav
|
|
6
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gnss-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Comprehensive GNSS library for JavaScript — time scales, coordinates, RINEX parsing, RTCM3 decoding, orbit computation, and signal analysis",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|