gnss-js 2.5.0 → 2.7.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-B2XWO4RP.js → chunk-BWLLHLLS.js} +158 -0
- package/dist/{chunk-MIIM4LDY.js → chunk-CVCTRIWU.js} +87 -24
- package/dist/coordinates.cjs +91 -26
- package/dist/coordinates.d.cts +26 -3
- package/dist/coordinates.d.ts +26 -3
- package/dist/coordinates.js +7 -3
- package/dist/index.cjs +250 -27
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -3
- package/dist/positioning.cjs +180 -0
- package/dist/positioning.d.cts +56 -1
- package/dist/positioning.d.ts +56 -1
- package/dist/positioning.js +4 -2
- package/package.json +1 -1
package/dist/positioning.cjs
CHANGED
|
@@ -25,6 +25,7 @@ __export(positioning_exports, {
|
|
|
25
25
|
RtkFloatEngine: () => RtkFloatEngine,
|
|
26
26
|
SbasProcessor: () => SbasProcessor,
|
|
27
27
|
Sp3EphemerisSource: () => Sp3EphemerisSource,
|
|
28
|
+
ZeroBaselineEngine: () => ZeroBaselineEngine,
|
|
28
29
|
antexFreqOfGroup: () => antexFreqOfGroup,
|
|
29
30
|
applyOrbitClock: () => applyOrbitClock,
|
|
30
31
|
buildPppAntenna: () => buildPppAntenna,
|
|
@@ -124,6 +125,28 @@ var START_NTP_TIME = /* @__PURE__ */ new Date("1900-01-01T00:00:00Z");
|
|
|
124
125
|
// src/constants/gnss.ts
|
|
125
126
|
var C_LIGHT = 299792458;
|
|
126
127
|
var OMEGA_E = 72921151467e-15;
|
|
128
|
+
var FREQ = {
|
|
129
|
+
G: { "1": 157542e4, "2": 12276e5, "5": 117645e4 },
|
|
130
|
+
// R bands 4/6 are the CDMA L1OC/L2OC center frequencies
|
|
131
|
+
R: { "3": 1202025e3, "4": 1600995e3, "6": 124806e4 },
|
|
132
|
+
E: {
|
|
133
|
+
"1": 157542e4,
|
|
134
|
+
"5": 117645e4,
|
|
135
|
+
"6": 127875e4,
|
|
136
|
+
"7": 120714e4,
|
|
137
|
+
"8": 1191795e3
|
|
138
|
+
},
|
|
139
|
+
C: {
|
|
140
|
+
"1": 157542e4,
|
|
141
|
+
"2": 1561098e3,
|
|
142
|
+
"5": 117645e4,
|
|
143
|
+
"6": 126852e4,
|
|
144
|
+
"7": 120714e4
|
|
145
|
+
},
|
|
146
|
+
J: { "1": 157542e4, "2": 12276e5, "5": 117645e4, "6": 127875e4 },
|
|
147
|
+
I: { "5": 117645e4, "9": 2492028e3 },
|
|
148
|
+
S: { "1": 157542e4, "5": 117645e4 }
|
|
149
|
+
};
|
|
127
150
|
|
|
128
151
|
// src/time/gnss.ts
|
|
129
152
|
function getTaiDate(date) {
|
|
@@ -1923,6 +1946,162 @@ function postProcessRtk(base, rover, ephemerides, baseEcef, opts = {}) {
|
|
|
1923
1946
|
return { track, solved, unmatched, fixRate: solved ? fixed / solved : 0 };
|
|
1924
1947
|
}
|
|
1925
1948
|
|
|
1949
|
+
// src/positioning/zero-baseline.ts
|
|
1950
|
+
function carrierFreqHz2(sys, band, gloChannel) {
|
|
1951
|
+
if (sys === "R") {
|
|
1952
|
+
if (band === "1") return 1602e6 + (gloChannel ?? 0) * 562500;
|
|
1953
|
+
if (band === "2") return 1246e6 + (gloChannel ?? 0) * 437500;
|
|
1954
|
+
return FREQ.R?.[band] ?? 0;
|
|
1955
|
+
}
|
|
1956
|
+
return FREQ[sys]?.[band] ?? 0;
|
|
1957
|
+
}
|
|
1958
|
+
function median(a) {
|
|
1959
|
+
if (a.length === 0) return 0;
|
|
1960
|
+
const s = [...a].sort((x, y) => x - y);
|
|
1961
|
+
const m = s.length >> 1;
|
|
1962
|
+
return s.length % 2 ? s[m] : (s[m - 1] + s[m]) / 2;
|
|
1963
|
+
}
|
|
1964
|
+
var ZeroBaselineEngine = class {
|
|
1965
|
+
ref;
|
|
1966
|
+
refSys;
|
|
1967
|
+
slip;
|
|
1968
|
+
/** Per (receiver|prn|code) continuous phase-SD arc. */
|
|
1969
|
+
arcs = /* @__PURE__ */ new Map();
|
|
1970
|
+
/** Per receiver: integrated phase-smoothed clock (m). */
|
|
1971
|
+
phaseClock = /* @__PURE__ */ new Map();
|
|
1972
|
+
/** Per (receiver|system): accumulated ISB (m) + count. */
|
|
1973
|
+
isb = /* @__PURE__ */ new Map();
|
|
1974
|
+
constructor(opts) {
|
|
1975
|
+
this.ref = opts.reference;
|
|
1976
|
+
this.refSys = opts.referenceSystem ?? "G";
|
|
1977
|
+
this.slip = opts.slipThreshM ?? 0.05;
|
|
1978
|
+
}
|
|
1979
|
+
reset() {
|
|
1980
|
+
this.arcs.clear();
|
|
1981
|
+
this.phaseClock.clear();
|
|
1982
|
+
this.isb.clear();
|
|
1983
|
+
}
|
|
1984
|
+
/** ISB/IFB estimates accumulated so far, per receiver × system. */
|
|
1985
|
+
biases() {
|
|
1986
|
+
const out = [];
|
|
1987
|
+
for (const [key, { sum, n }] of this.isb) {
|
|
1988
|
+
const [receiver, system] = key.split("|");
|
|
1989
|
+
out.push({ receiver, system, biasM: sum / n, n });
|
|
1990
|
+
}
|
|
1991
|
+
return out;
|
|
1992
|
+
}
|
|
1993
|
+
/**
|
|
1994
|
+
* Ingest one time-aligned instant: observations per receiver id. Returns one
|
|
1995
|
+
* {@link ReceiverClockSample} per non-reference receiver present this epoch.
|
|
1996
|
+
*/
|
|
1997
|
+
process(epoch) {
|
|
1998
|
+
const refObs = epoch.obs[this.ref];
|
|
1999
|
+
if (!refObs) return [];
|
|
2000
|
+
const refByKey = /* @__PURE__ */ new Map();
|
|
2001
|
+
for (const o of refObs)
|
|
2002
|
+
if (o.pr != null && Number.isFinite(o.pr))
|
|
2003
|
+
refByKey.set(`${o.prn}|${o.code}`, o);
|
|
2004
|
+
const out = [];
|
|
2005
|
+
for (const rx of Object.keys(epoch.obs)) {
|
|
2006
|
+
if (rx === this.ref) continue;
|
|
2007
|
+
out.push(
|
|
2008
|
+
this.processReceiver(rx, epoch.obs[rx], refByKey, epoch.timeMs)
|
|
2009
|
+
);
|
|
2010
|
+
}
|
|
2011
|
+
return out;
|
|
2012
|
+
}
|
|
2013
|
+
processReceiver(rx, obs, refByKey, t) {
|
|
2014
|
+
const codeBySys = /* @__PURE__ */ new Map();
|
|
2015
|
+
const phase = [];
|
|
2016
|
+
for (const o of obs) {
|
|
2017
|
+
if (o.pr == null || !Number.isFinite(o.pr)) continue;
|
|
2018
|
+
const r = refByKey.get(`${o.prn}|${o.code}`);
|
|
2019
|
+
if (!r || r.pr == null) continue;
|
|
2020
|
+
const sys = o.prn[0];
|
|
2021
|
+
(codeBySys.get(sys) ?? codeBySys.set(sys, []).get(sys)).push(
|
|
2022
|
+
o.pr - r.pr
|
|
2023
|
+
);
|
|
2024
|
+
if (o.cp != null && r.cp != null) {
|
|
2025
|
+
const f = carrierFreqHz2(
|
|
2026
|
+
sys,
|
|
2027
|
+
o.code[0],
|
|
2028
|
+
o.gloChannel ?? r.gloChannel ?? null
|
|
2029
|
+
);
|
|
2030
|
+
if (f > 0)
|
|
2031
|
+
phase.push({
|
|
2032
|
+
key: `${rx}|${o.prn}|${o.code}`,
|
|
2033
|
+
sdM: (o.cp - r.cp) * (C_LIGHT / f),
|
|
2034
|
+
lock: o.lockTimeS
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
if (codeBySys.size === 0)
|
|
2039
|
+
return {
|
|
2040
|
+
t,
|
|
2041
|
+
receiver: rx,
|
|
2042
|
+
clockOffsetM: null,
|
|
2043
|
+
clockOffsetPhaseM: this.phaseClock.get(rx) ?? null,
|
|
2044
|
+
used: 0,
|
|
2045
|
+
rejected: 0,
|
|
2046
|
+
residualRmsM: 0
|
|
2047
|
+
};
|
|
2048
|
+
const sysMedian = /* @__PURE__ */ new Map();
|
|
2049
|
+
for (const [sys, v] of codeBySys) sysMedian.set(sys, median(v));
|
|
2050
|
+
const allSd = [];
|
|
2051
|
+
for (const v of codeBySys.values()) allSd.push(...v);
|
|
2052
|
+
const clk = sysMedian.get(this.refSys) ?? median(allSd);
|
|
2053
|
+
for (const [sys, med] of sysMedian) {
|
|
2054
|
+
if (sys === this.refSys) continue;
|
|
2055
|
+
const cur = this.isb.get(`${rx}|${sys}`) ?? { sum: 0, n: 0 };
|
|
2056
|
+
cur.sum += med - clk;
|
|
2057
|
+
cur.n += 1;
|
|
2058
|
+
this.isb.set(`${rx}|${sys}`, cur);
|
|
2059
|
+
}
|
|
2060
|
+
let ss = 0, used = 0, rejected = 0;
|
|
2061
|
+
for (const [sys, v] of codeBySys) {
|
|
2062
|
+
const isb = sys === this.refSys ? 0 : sysMedian.get(sys) - clk;
|
|
2063
|
+
for (const sd of v) {
|
|
2064
|
+
const res = sd - clk - isb;
|
|
2065
|
+
if (Math.abs(res) > 5) {
|
|
2066
|
+
rejected++;
|
|
2067
|
+
continue;
|
|
2068
|
+
}
|
|
2069
|
+
ss += res * res;
|
|
2070
|
+
used++;
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
const residualRmsM = used ? Math.sqrt(ss / used) : 0;
|
|
2074
|
+
const deltas = [];
|
|
2075
|
+
for (const p of phase) {
|
|
2076
|
+
const arc = this.arcs.get(p.key);
|
|
2077
|
+
this.arcs.set(p.key, { lastPhaseSdM: p.sdM, lastLock: p.lock });
|
|
2078
|
+
if (!arc) continue;
|
|
2079
|
+
const lockReset = p.lock != null && arc.lastLock != null && p.lock < arc.lastLock;
|
|
2080
|
+
if (lockReset) continue;
|
|
2081
|
+
deltas.push(p.sdM - arc.lastPhaseSdM);
|
|
2082
|
+
}
|
|
2083
|
+
let phaseClockM = this.phaseClock.get(rx) ?? null;
|
|
2084
|
+
if (phaseClockM == null) {
|
|
2085
|
+
phaseClockM = clk;
|
|
2086
|
+
} else if (deltas.length) {
|
|
2087
|
+
const md = median(deltas);
|
|
2088
|
+
const good = deltas.filter((d) => Math.abs(d - md) < this.slip);
|
|
2089
|
+
const step = good.length ? good.reduce((a, b) => a + b, 0) / good.length : md;
|
|
2090
|
+
phaseClockM += step;
|
|
2091
|
+
}
|
|
2092
|
+
this.phaseClock.set(rx, phaseClockM);
|
|
2093
|
+
return {
|
|
2094
|
+
t,
|
|
2095
|
+
receiver: rx,
|
|
2096
|
+
clockOffsetM: clk,
|
|
2097
|
+
clockOffsetPhaseM: phaseClockM,
|
|
2098
|
+
used,
|
|
2099
|
+
rejected,
|
|
2100
|
+
residualRmsM
|
|
2101
|
+
};
|
|
2102
|
+
}
|
|
2103
|
+
};
|
|
2104
|
+
|
|
1926
2105
|
// src/navbits/index.ts
|
|
1927
2106
|
var GPS_EPOCH_MS2 = Date.UTC(1980, 0, 6);
|
|
1928
2107
|
var SEC_PER_WEEK = 7 * 86400;
|
|
@@ -4420,6 +4599,7 @@ function solveSpp(pseudoranges, ephemerides, timeMs, opts = {}) {
|
|
|
4420
4599
|
RtkFloatEngine,
|
|
4421
4600
|
SbasProcessor,
|
|
4422
4601
|
Sp3EphemerisSource,
|
|
4602
|
+
ZeroBaselineEngine,
|
|
4423
4603
|
antexFreqOfGroup,
|
|
4424
4604
|
applyOrbitClock,
|
|
4425
4605
|
buildPppAntenna,
|
package/dist/positioning.d.cts
CHANGED
|
@@ -558,6 +558,61 @@ interface RtkPostProcessResult {
|
|
|
558
558
|
*/
|
|
559
559
|
declare function postProcessRtk(base: RtkObsInput, rover: RtkObsInput, ephemerides: EphemerisSource, baseEcef: readonly [number, number, number], opts?: RtkPostProcessOptions): RtkPostProcessResult;
|
|
560
560
|
|
|
561
|
+
interface ZeroBaselineOptions {
|
|
562
|
+
/** Reference receiver id (every other receiver is differenced against it). */
|
|
563
|
+
reference: string;
|
|
564
|
+
/** ISB datum system letter (biases are reported relative to it). Default 'G'. */
|
|
565
|
+
referenceSystem?: string;
|
|
566
|
+
/** Phase-SD inter-epoch jump gate (m) for cycle-slip rejection. Default 0.05. */
|
|
567
|
+
slipThreshM?: number;
|
|
568
|
+
}
|
|
569
|
+
/** One receiver's relative-clock estimate at one epoch. */
|
|
570
|
+
interface ReceiverClockSample {
|
|
571
|
+
t: number;
|
|
572
|
+
receiver: string;
|
|
573
|
+
/** Code relative clock (m); divide by c for seconds. Null with no data. */
|
|
574
|
+
clockOffsetM: number | null;
|
|
575
|
+
/** Phase-smoothed relative clock (m) — precise; anchored to the code clock. */
|
|
576
|
+
clockOffsetPhaseM: number | null;
|
|
577
|
+
/** Signals used / rejected in the code solution this epoch. */
|
|
578
|
+
used: number;
|
|
579
|
+
rejected: number;
|
|
580
|
+
/** RMS of the code-SD residuals about the clock+ISB fit (m). */
|
|
581
|
+
residualRmsM: number;
|
|
582
|
+
}
|
|
583
|
+
/** A receiver's inter-system bias relative to the datum system (m). */
|
|
584
|
+
interface ReceiverBias {
|
|
585
|
+
receiver: string;
|
|
586
|
+
system: string;
|
|
587
|
+
biasM: number;
|
|
588
|
+
/** Epochs the estimate averages over. */
|
|
589
|
+
n: number;
|
|
590
|
+
}
|
|
591
|
+
declare class ZeroBaselineEngine {
|
|
592
|
+
private readonly ref;
|
|
593
|
+
private readonly refSys;
|
|
594
|
+
private readonly slip;
|
|
595
|
+
/** Per (receiver|prn|code) continuous phase-SD arc. */
|
|
596
|
+
private readonly arcs;
|
|
597
|
+
/** Per receiver: integrated phase-smoothed clock (m). */
|
|
598
|
+
private readonly phaseClock;
|
|
599
|
+
/** Per (receiver|system): accumulated ISB (m) + count. */
|
|
600
|
+
private readonly isb;
|
|
601
|
+
constructor(opts: ZeroBaselineOptions);
|
|
602
|
+
reset(): void;
|
|
603
|
+
/** ISB/IFB estimates accumulated so far, per receiver × system. */
|
|
604
|
+
biases(): ReceiverBias[];
|
|
605
|
+
/**
|
|
606
|
+
* Ingest one time-aligned instant: observations per receiver id. Returns one
|
|
607
|
+
* {@link ReceiverClockSample} per non-reference receiver present this epoch.
|
|
608
|
+
*/
|
|
609
|
+
process(epoch: {
|
|
610
|
+
timeMs: number;
|
|
611
|
+
obs: Record<string, readonly RawObservation[]>;
|
|
612
|
+
}): ReceiverClockSample[];
|
|
613
|
+
private processReceiver;
|
|
614
|
+
}
|
|
615
|
+
|
|
561
616
|
/**
|
|
562
617
|
* Integer ambiguity resolution: LAMBDA decorrelation + MLAMBDA
|
|
563
618
|
* integer least-squares search.
|
|
@@ -1659,4 +1714,4 @@ declare function sbasProtectionLevels(sats: readonly {
|
|
|
1659
1714
|
*/
|
|
1660
1715
|
declare function solveSpp(pseudoranges: Map<string, number>, ephemerides: Map<string, Ephemeris>, timeMs: number, opts?: SppOptions): SppSolution | null;
|
|
1661
1716
|
|
|
1662
|
-
export { type AntennaOffset, type AppliedOrbitClock, type ArFixedSat, type ArOptions, type ArResult, type ArSat, type CorrectionResult, type Degradation, type DgnssOptions, type DgnssSolution, type EphemerisSource, type FixedPositionResult, IONO_L1_M_PER_TECU, type KlobucharCoeffs, type LambdaResult, type NetworkFcbResult, type NetworkFcbSummary, type NlArc, type NlFcbResult, type OrbitClockCorrection, type PppAntennaModel, type PppArc, type PppCorrectionConfig, type PppCorrections, PppEngine, type PppEphemerisSource, type PppEpoch, type PppEpochContext, type PppEpochResult, type PppFixState, type PppOptions, type PppSatObs, type PppSolution, type RawObservation, type RtkAntennaConfig, type RtkAntennaModel, type RtkAntennaOffset, type RtkEpochMeasurements, RtkFloatEngine, type RtkFloatOptions, type RtkFloatSolution, type RtkMeasurement, type RtkObsEpoch, type RtkObsInput, type RtkPostProcessOptions, type RtkPostProcessResult, type RtkReceiverAntenna, type RtkTrackPoint, type SatGeom, type SatSample, type SbasCorrectionSource, type SbasIgp, type SbasIonoDelay, SbasProcessor, type SbasSatCorrection, Sp3EphemerisSource, type SppOptions, type SppSolution, type TropoMapping, type WlArc, type WlFcbOptions, type WlFcbResult, type WlObs, antexFreqOfGroup, applyOrbitClock, buildPppAntenna, buildRtkAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, fixPppPosition, gimSlantIonoDelayL1, gimVerticalTec, gmst, hasToOrbitClock, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, postProcessRtk, rcvAntennaRangeM, resolvePppAmbiguities, satClockCorrection, sbasIonoDeg, sbasLongTermDeg, sbasProtectionLevels, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength };
|
|
1717
|
+
export { type AntennaOffset, type AppliedOrbitClock, type ArFixedSat, type ArOptions, type ArResult, type ArSat, type CorrectionResult, type Degradation, type DgnssOptions, type DgnssSolution, type EphemerisSource, type FixedPositionResult, IONO_L1_M_PER_TECU, type KlobucharCoeffs, type LambdaResult, type NetworkFcbResult, type NetworkFcbSummary, type NlArc, type NlFcbResult, type OrbitClockCorrection, type PppAntennaModel, type PppArc, type PppCorrectionConfig, type PppCorrections, PppEngine, type PppEphemerisSource, type PppEpoch, type PppEpochContext, type PppEpochResult, type PppFixState, type PppOptions, type PppSatObs, type PppSolution, type RawObservation, type ReceiverBias, type ReceiverClockSample, type RtkAntennaConfig, type RtkAntennaModel, type RtkAntennaOffset, type RtkEpochMeasurements, RtkFloatEngine, type RtkFloatOptions, type RtkFloatSolution, type RtkMeasurement, type RtkObsEpoch, type RtkObsInput, type RtkPostProcessOptions, type RtkPostProcessResult, type RtkReceiverAntenna, type RtkTrackPoint, type SatGeom, type SatSample, type SbasCorrectionSource, type SbasIgp, type SbasIonoDelay, SbasProcessor, type SbasSatCorrection, Sp3EphemerisSource, type SppOptions, type SppSolution, type TropoMapping, type WlArc, type WlFcbOptions, type WlFcbResult, type WlObs, ZeroBaselineEngine, type ZeroBaselineOptions, antexFreqOfGroup, applyOrbitClock, buildPppAntenna, buildRtkAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, fixPppPosition, gimSlantIonoDelayL1, gimVerticalTec, gmst, hasToOrbitClock, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, postProcessRtk, rcvAntennaRangeM, resolvePppAmbiguities, satClockCorrection, sbasIonoDeg, sbasLongTermDeg, sbasProtectionLevels, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength };
|
package/dist/positioning.d.ts
CHANGED
|
@@ -558,6 +558,61 @@ interface RtkPostProcessResult {
|
|
|
558
558
|
*/
|
|
559
559
|
declare function postProcessRtk(base: RtkObsInput, rover: RtkObsInput, ephemerides: EphemerisSource, baseEcef: readonly [number, number, number], opts?: RtkPostProcessOptions): RtkPostProcessResult;
|
|
560
560
|
|
|
561
|
+
interface ZeroBaselineOptions {
|
|
562
|
+
/** Reference receiver id (every other receiver is differenced against it). */
|
|
563
|
+
reference: string;
|
|
564
|
+
/** ISB datum system letter (biases are reported relative to it). Default 'G'. */
|
|
565
|
+
referenceSystem?: string;
|
|
566
|
+
/** Phase-SD inter-epoch jump gate (m) for cycle-slip rejection. Default 0.05. */
|
|
567
|
+
slipThreshM?: number;
|
|
568
|
+
}
|
|
569
|
+
/** One receiver's relative-clock estimate at one epoch. */
|
|
570
|
+
interface ReceiverClockSample {
|
|
571
|
+
t: number;
|
|
572
|
+
receiver: string;
|
|
573
|
+
/** Code relative clock (m); divide by c for seconds. Null with no data. */
|
|
574
|
+
clockOffsetM: number | null;
|
|
575
|
+
/** Phase-smoothed relative clock (m) — precise; anchored to the code clock. */
|
|
576
|
+
clockOffsetPhaseM: number | null;
|
|
577
|
+
/** Signals used / rejected in the code solution this epoch. */
|
|
578
|
+
used: number;
|
|
579
|
+
rejected: number;
|
|
580
|
+
/** RMS of the code-SD residuals about the clock+ISB fit (m). */
|
|
581
|
+
residualRmsM: number;
|
|
582
|
+
}
|
|
583
|
+
/** A receiver's inter-system bias relative to the datum system (m). */
|
|
584
|
+
interface ReceiverBias {
|
|
585
|
+
receiver: string;
|
|
586
|
+
system: string;
|
|
587
|
+
biasM: number;
|
|
588
|
+
/** Epochs the estimate averages over. */
|
|
589
|
+
n: number;
|
|
590
|
+
}
|
|
591
|
+
declare class ZeroBaselineEngine {
|
|
592
|
+
private readonly ref;
|
|
593
|
+
private readonly refSys;
|
|
594
|
+
private readonly slip;
|
|
595
|
+
/** Per (receiver|prn|code) continuous phase-SD arc. */
|
|
596
|
+
private readonly arcs;
|
|
597
|
+
/** Per receiver: integrated phase-smoothed clock (m). */
|
|
598
|
+
private readonly phaseClock;
|
|
599
|
+
/** Per (receiver|system): accumulated ISB (m) + count. */
|
|
600
|
+
private readonly isb;
|
|
601
|
+
constructor(opts: ZeroBaselineOptions);
|
|
602
|
+
reset(): void;
|
|
603
|
+
/** ISB/IFB estimates accumulated so far, per receiver × system. */
|
|
604
|
+
biases(): ReceiverBias[];
|
|
605
|
+
/**
|
|
606
|
+
* Ingest one time-aligned instant: observations per receiver id. Returns one
|
|
607
|
+
* {@link ReceiverClockSample} per non-reference receiver present this epoch.
|
|
608
|
+
*/
|
|
609
|
+
process(epoch: {
|
|
610
|
+
timeMs: number;
|
|
611
|
+
obs: Record<string, readonly RawObservation[]>;
|
|
612
|
+
}): ReceiverClockSample[];
|
|
613
|
+
private processReceiver;
|
|
614
|
+
}
|
|
615
|
+
|
|
561
616
|
/**
|
|
562
617
|
* Integer ambiguity resolution: LAMBDA decorrelation + MLAMBDA
|
|
563
618
|
* integer least-squares search.
|
|
@@ -1659,4 +1714,4 @@ declare function sbasProtectionLevels(sats: readonly {
|
|
|
1659
1714
|
*/
|
|
1660
1715
|
declare function solveSpp(pseudoranges: Map<string, number>, ephemerides: Map<string, Ephemeris>, timeMs: number, opts?: SppOptions): SppSolution | null;
|
|
1661
1716
|
|
|
1662
|
-
export { type AntennaOffset, type AppliedOrbitClock, type ArFixedSat, type ArOptions, type ArResult, type ArSat, type CorrectionResult, type Degradation, type DgnssOptions, type DgnssSolution, type EphemerisSource, type FixedPositionResult, IONO_L1_M_PER_TECU, type KlobucharCoeffs, type LambdaResult, type NetworkFcbResult, type NetworkFcbSummary, type NlArc, type NlFcbResult, type OrbitClockCorrection, type PppAntennaModel, type PppArc, type PppCorrectionConfig, type PppCorrections, PppEngine, type PppEphemerisSource, type PppEpoch, type PppEpochContext, type PppEpochResult, type PppFixState, type PppOptions, type PppSatObs, type PppSolution, type RawObservation, type RtkAntennaConfig, type RtkAntennaModel, type RtkAntennaOffset, type RtkEpochMeasurements, RtkFloatEngine, type RtkFloatOptions, type RtkFloatSolution, type RtkMeasurement, type RtkObsEpoch, type RtkObsInput, type RtkPostProcessOptions, type RtkPostProcessResult, type RtkReceiverAntenna, type RtkTrackPoint, type SatGeom, type SatSample, type SbasCorrectionSource, type SbasIgp, type SbasIonoDelay, SbasProcessor, type SbasSatCorrection, Sp3EphemerisSource, type SppOptions, type SppSolution, type TropoMapping, type WlArc, type WlFcbOptions, type WlFcbResult, type WlObs, antexFreqOfGroup, applyOrbitClock, buildPppAntenna, buildRtkAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, fixPppPosition, gimSlantIonoDelayL1, gimVerticalTec, gmst, hasToOrbitClock, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, postProcessRtk, rcvAntennaRangeM, resolvePppAmbiguities, satClockCorrection, sbasIonoDeg, sbasLongTermDeg, sbasProtectionLevels, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength };
|
|
1717
|
+
export { type AntennaOffset, type AppliedOrbitClock, type ArFixedSat, type ArOptions, type ArResult, type ArSat, type CorrectionResult, type Degradation, type DgnssOptions, type DgnssSolution, type EphemerisSource, type FixedPositionResult, IONO_L1_M_PER_TECU, type KlobucharCoeffs, type LambdaResult, type NetworkFcbResult, type NetworkFcbSummary, type NlArc, type NlFcbResult, type OrbitClockCorrection, type PppAntennaModel, type PppArc, type PppCorrectionConfig, type PppCorrections, PppEngine, type PppEphemerisSource, type PppEpoch, type PppEpochContext, type PppEpochResult, type PppFixState, type PppOptions, type PppSatObs, type PppSolution, type RawObservation, type ReceiverBias, type ReceiverClockSample, type RtkAntennaConfig, type RtkAntennaModel, type RtkAntennaOffset, type RtkEpochMeasurements, RtkFloatEngine, type RtkFloatOptions, type RtkFloatSolution, type RtkMeasurement, type RtkObsEpoch, type RtkObsInput, type RtkPostProcessOptions, type RtkPostProcessResult, type RtkReceiverAntenna, type RtkTrackPoint, type SatGeom, type SatSample, type SbasCorrectionSource, type SbasIgp, type SbasIonoDelay, SbasProcessor, type SbasSatCorrection, Sp3EphemerisSource, type SppOptions, type SppSolution, type TropoMapping, type WlArc, type WlFcbOptions, type WlFcbResult, type WlObs, ZeroBaselineEngine, type ZeroBaselineOptions, antexFreqOfGroup, applyOrbitClock, buildPppAntenna, buildRtkAntenna, createPppCorrections, estimateNarrowlaneFcb, estimateNetworkFcbs, estimateWidelaneFcb, extractWidelaneArcs, fixPppPosition, gimSlantIonoDelayL1, gimVerticalTec, gmst, hasToOrbitClock, ionoFree, klobucharDelay, lambdaReduction, lambdaSearch, moonEcef, niellMapping, nlWavelength, postProcessRtk, rcvAntennaRangeM, resolvePppAmbiguities, satClockCorrection, sbasIonoDeg, sbasLongTermDeg, sbasProtectionLevels, solidEarthTide, solveDgnss, solvePpp, solveSpp, sunEcef, toRtkEpoch, wlWavelength };
|
package/dist/positioning.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
RtkFloatEngine,
|
|
5
5
|
SbasProcessor,
|
|
6
6
|
Sp3EphemerisSource,
|
|
7
|
+
ZeroBaselineEngine,
|
|
7
8
|
antexFreqOfGroup,
|
|
8
9
|
applyOrbitClock,
|
|
9
10
|
buildPppAntenna,
|
|
@@ -39,11 +40,11 @@ import {
|
|
|
39
40
|
sunEcef,
|
|
40
41
|
toRtkEpoch,
|
|
41
42
|
wlWavelength
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-BWLLHLLS.js";
|
|
43
44
|
import "./chunk-WQX354KD.js";
|
|
44
45
|
import "./chunk-JYWYQ7DW.js";
|
|
45
46
|
import "./chunk-HVXYFUCB.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-CVCTRIWU.js";
|
|
47
48
|
import "./chunk-37QNKGTC.js";
|
|
48
49
|
import "./chunk-LEEU5OIO.js";
|
|
49
50
|
import "./chunk-6FAL6P4G.js";
|
|
@@ -57,6 +58,7 @@ export {
|
|
|
57
58
|
RtkFloatEngine,
|
|
58
59
|
SbasProcessor,
|
|
59
60
|
Sp3EphemerisSource,
|
|
61
|
+
ZeroBaselineEngine,
|
|
60
62
|
antexFreqOfGroup,
|
|
61
63
|
applyOrbitClock,
|
|
62
64
|
buildPppAntenna,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gnss-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.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,
|