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.
@@ -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 BDS_GEO_MAX_INCLINATION_RAD = 0.1;
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" && Math.abs(eph.i0) < BDS_GEO_MAX_INCLINATION_RAD && a > BDS_GEO_MIN_SEMIMAJOR_AXIS_M;
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);