gnss-js 1.22.0 → 1.23.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-CUWF56ST.js +966 -0
- package/dist/{chunk-JNFV5BYB.js → chunk-MHGNKSSH.js} +2 -3
- package/dist/index.cjs +712 -7
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -3
- package/dist/orbit.cjs +2 -3
- package/dist/orbit.js +1 -1
- package/dist/positioning.cjs +734 -9
- package/dist/positioning.d.cts +238 -1
- package/dist/positioning.d.ts +238 -1
- package/dist/positioning.js +10 -4
- package/package.json +1 -1
- package/dist/chunk-B5LU4746.js +0 -262
|
@@ -192,8 +192,7 @@ var GM_GPS2 = 3986005e8;
|
|
|
192
192
|
var GM_GAL2 = 3986004418e5;
|
|
193
193
|
var GM_BDS2 = 3986004418e5;
|
|
194
194
|
var GM_GLO = 39860044e7;
|
|
195
|
-
var
|
|
196
|
-
var BDS_GEO_MIN_SEMIMAJOR_AXIS_M = 4e7;
|
|
195
|
+
var BDS_GEO_PRNS2 = /* @__PURE__ */ new Set([1, 2, 3, 4, 5, 59, 60, 61, 62, 63]);
|
|
197
196
|
var AE_GLO = 6378136;
|
|
198
197
|
var J2_GLO = 108263e-8;
|
|
199
198
|
var TWO_PI = 2 * Math.PI;
|
|
@@ -240,7 +239,7 @@ function keplerPosition(eph, t) {
|
|
|
240
239
|
const yp = rk * Math.sin(uk);
|
|
241
240
|
const xpDot = drkDot * Math.cos(uk) - rk * ukDot * Math.sin(uk);
|
|
242
241
|
const ypDot = drkDot * Math.sin(uk) + rk * ukDot * Math.cos(uk);
|
|
243
|
-
const isBdsGeo = eph.system === "C" &&
|
|
242
|
+
const isBdsGeo = eph.system === "C" && BDS_GEO_PRNS2.has(Number(eph.prn.slice(1)));
|
|
244
243
|
if (isBdsGeo) {
|
|
245
244
|
const omegak2 = eph.omega0 + eph.omegaDot * tk - OMEGA_E * eph.toe;
|
|
246
245
|
const cosO2 = Math.cos(omegak2);
|