gnss-js 2.1.0 → 2.2.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.
@@ -1839,7 +1839,8 @@ function updateStreamStats(stats, frames, rawBytes) {
1839
1839
  stats.satellites.set(obs.prn, {
1840
1840
  prn: obs.prn,
1841
1841
  system: obs.system,
1842
- cn0: bestCn0,
1842
+ cn0: bestCn0 > 0 ? bestCn0 : null,
1843
+ // null = no C/N0 reported
1843
1844
  lastSeen: now,
1844
1845
  signals
1845
1846
  });
package/dist/index.cjs CHANGED
@@ -6572,7 +6572,8 @@ function updateStreamStats(stats, frames, rawBytes) {
6572
6572
  stats.satellites.set(obs.prn, {
6573
6573
  prn: obs.prn,
6574
6574
  system: obs.system,
6575
- cn0: bestCn0,
6575
+ cn0: bestCn0 > 0 ? bestCn0 : null,
6576
+ // null = no C/N0 reported
6576
6577
  lastSeen: now,
6577
6578
  signals
6578
6579
  });
package/dist/index.js CHANGED
@@ -77,7 +77,7 @@ import {
77
77
  setRtcm3DebugHandler,
78
78
  updateStationMeta,
79
79
  updateStreamStats
80
- } from "./chunk-WVTDVPKA.js";
80
+ } from "./chunk-XPQ4BU6W.js";
81
81
  import {
82
82
  parseUbxCnav,
83
83
  parseUbxIonoUtc,
package/dist/rtcm3.cjs CHANGED
@@ -1988,7 +1988,8 @@ function updateStreamStats(stats, frames, rawBytes) {
1988
1988
  stats.satellites.set(obs.prn, {
1989
1989
  prn: obs.prn,
1990
1990
  system: obs.system,
1991
- cn0: bestCn0,
1991
+ cn0: bestCn0 > 0 ? bestCn0 : null,
1992
+ // null = no C/N0 reported
1992
1993
  lastSeen: now,
1993
1994
  signals
1994
1995
  });
package/dist/rtcm3.d.cts CHANGED
@@ -280,7 +280,10 @@ interface SignalCn0 {
280
280
  interface SatCn0 {
281
281
  prn: string;
282
282
  system: string;
283
- cn0: number;
283
+ /** Best C/N0 across all codes (dB-Hz), or null when the source reports no
284
+ * C/N0 at all (legacy RTCM3 obs 1001-1012, RTCM 2.x) — the satellite is
285
+ * still tracked, its signal strength is simply unknown. */
286
+ cn0: number | null;
284
287
  lastSeen: number;
285
288
  /** Per-signal C/N0 values */
286
289
  signals: SignalCn0[];
package/dist/rtcm3.d.ts CHANGED
@@ -280,7 +280,10 @@ interface SignalCn0 {
280
280
  interface SatCn0 {
281
281
  prn: string;
282
282
  system: string;
283
- cn0: number;
283
+ /** Best C/N0 across all codes (dB-Hz), or null when the source reports no
284
+ * C/N0 at all (legacy RTCM3 obs 1001-1012, RTCM 2.x) — the satellite is
285
+ * still tracked, its signal strength is simply unknown. */
286
+ cn0: number | null;
284
287
  lastSeen: number;
285
288
  /** Per-signal C/N0 values */
286
289
  signals: SignalCn0[];
package/dist/rtcm3.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  setRtcm3DebugHandler,
22
22
  updateStationMeta,
23
23
  updateStreamStats
24
- } from "./chunk-WVTDVPKA.js";
24
+ } from "./chunk-XPQ4BU6W.js";
25
25
  import "./chunk-HVXYFUCB.js";
26
26
  import "./chunk-LEEU5OIO.js";
27
27
  import "./chunk-FIEWO4J4.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gnss-js",
3
- "version": "2.1.0",
3
+ "version": "2.2.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,