gnss-js 2.0.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.
package/dist/sbf.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { S as SbfAlmanac, a as SbfAlmanacResult, b as SbfGlonassAlmanac, c as SbfKeplerAlmanac, d as SbfNavResult, p as parseSbfAlmanac, e as parseSbfNav } from './nav-CN8rxL4h.js';
2
2
  import { R as ReceiverPvt } from './receiver-pvt-CVFvi4kT.js';
3
3
  import { K as KeplerEphemeris, C as CnavEphemeris, G as GlonassEphemeris, E as Ephemeris } from './nav-DImXUdbp.js';
4
+ import { H as HasMessage } from './has-BaXnQarR.js';
4
5
 
5
6
  /**
6
7
  * Septentrio SBF framing shared by the measurement and navigation
@@ -496,128 +497,6 @@ declare function sbasL5MessageName(type: number): string;
496
497
  /** True for L5 types that carry actual corrections (vs test/null/spare). */
497
498
  declare function isSbasL5Correction(type: number): boolean;
498
499
 
499
- /** Constellations HAS corrects: GPS (GNSS ID 0), Galileo (GNSS ID 2). */
500
- type HasSystem = 'G' | 'E';
501
- /** One system's satellite/signal mask (ICD §6.4.3). */
502
- interface HasSystemMask {
503
- /** GNSS ID as broadcast: 0 GPS, 2 Galileo. */
504
- gnssId: number;
505
- system: HasSystem;
506
- /** Masked satellites in mask order, e.g. ["E03", "E05", ...]. */
507
- prns: string[];
508
- /** Set bits of the 16-bit signal mask, ascending. */
509
- signalIndices: number[];
510
- /** ICD names for `signalIndices`. */
511
- signals: string[];
512
- /**
513
- * Cell mask, [satellite][signal] in mask order — true when the
514
- * sat×signal combination carries biases. Null when the cell-mask
515
- * availability flag is 0 (all combinations available).
516
- */
517
- cellMask: boolean[][] | null;
518
- /** Nav-message index the corrections refer to (0 = LNAV / I/NAV). */
519
- navMessage: number;
520
- }
521
- /** The satellite/signal mask block of one mask ID. */
522
- interface HasMasks {
523
- maskId: number;
524
- systems: HasSystemMask[];
525
- }
526
- /** Orbit correction for one satellite (ICD §6.5). */
527
- interface HasOrbitCorrection {
528
- system: HasSystem;
529
- prn: string;
530
- /** Broadcast issue of data the deltas refer to (IODE / IODNav). */
531
- gnssIod: number;
532
- /** Delta radial in m (LSB 0.0025), null = data not available. */
533
- deltaRadial: number | null;
534
- /** Delta in-track in m (LSB 0.008), null = data not available. */
535
- deltaInTrack: number | null;
536
- /** Delta cross-track in m (LSB 0.008), null = data not available. */
537
- deltaCrossTrack: number | null;
538
- }
539
- interface HasOrbitBlock {
540
- validityIndex: number;
541
- /** Validity interval in s (null = reserved index 15). */
542
- validitySeconds: number | null;
543
- corrections: HasOrbitCorrection[];
544
- }
545
- /** Clock correction for one satellite (ICD §6.6-6.7). */
546
- interface HasClockCorrection {
547
- system: HasSystem;
548
- prn: string;
549
- /**
550
- * Delta clock C0 in m, multiplier folded in; positive means the
551
- * satellite clock offset grows (add Δclock/c to the broadcast
552
- * clock). Null when data not available or the satellite is flagged
553
- * "shall not be used" (see `notUsable`).
554
- */
555
- deltaClock: number | null;
556
- /** True for the reserved "insufficient accuracy, do not use" value. */
557
- notUsable: boolean;
558
- }
559
- interface HasClockBlock {
560
- validityIndex: number;
561
- validitySeconds: number | null;
562
- /** Delta-clock C0 multiplier per system (1-4), in mask order. */
563
- multipliers: {
564
- system: HasSystem;
565
- multiplier: number;
566
- }[];
567
- corrections: HasClockCorrection[];
568
- }
569
- /** Code or phase bias of one satellite × signal cell (ICD §6.8-6.9). */
570
- interface HasSignalBias {
571
- system: HasSystem;
572
- prn: string;
573
- signalIndex: number;
574
- signal: string;
575
- /** Bias in m (code, LSB 0.02) or cycles (phase, LSB 0.01); null = N/A. */
576
- bias: number | null;
577
- /** Phase-discontinuity indicator (phase biases only). */
578
- discontinuity?: number;
579
- }
580
- interface HasBiasBlock {
581
- validityIndex: number;
582
- validitySeconds: number | null;
583
- biases: HasSignalBias[];
584
- }
585
- /** Which sub-blocks the MT1 header flags as present (ICD §6.2). */
586
- interface HasContentFlags {
587
- mask: boolean;
588
- orbit: boolean;
589
- clockFullSet: boolean;
590
- clockSubset: boolean;
591
- codeBias: boolean;
592
- phaseBias: boolean;
593
- }
594
- /** One decoded HAS MT1 message. */
595
- interface HasMessage {
596
- /** Receiver time of week (s) of the page completing the message. */
597
- tow?: number;
598
- /** HAS status of the carrying pages (0 test, 1 operational). */
599
- status: number;
600
- messageId: number;
601
- /** Message size in pages (= pages used for the RS decode). */
602
- messageSize: number;
603
- /** Time of hour of the corrections, s (0-3599, ICD §6.2). */
604
- toh: number;
605
- maskId: number;
606
- iodSetId: number;
607
- flags: HasContentFlags;
608
- /** The mask block in force (own or cached, see `maskFromCache`). */
609
- masks?: HasMasks;
610
- /** True when `masks` came from an earlier message with this mask ID. */
611
- maskFromCache: boolean;
612
- orbit?: HasOrbitBlock;
613
- clockFullSet?: HasClockBlock;
614
- clockSubset?: HasClockBlock;
615
- codeBias?: HasBiasBlock;
616
- phaseBias?: HasBiasBlock;
617
- /** Null when fully parsed, else why the sub-blocks are missing. */
618
- parseError: string | null;
619
- }
620
-
621
500
  /**
622
501
  * Septentrio SBF GALRawCNAV (4024) blocks: one 492-bit Galileo E6-B
623
502
  * C/NAV page per block (after deinterleaving and Viterbi decoding),
@@ -731,4 +610,4 @@ interface SbfParseResult {
731
610
  */
732
611
  declare function parseSbfMeas(data: Uint8Array): SbfParseResult;
733
612
 
734
- export { CnavEphemeris, type DfmcCensus, type DfmcMessageCb, type GeoL5Result, type HasMessage, ReceiverPvt, SBAS_L5_MT_NAMES, SBAS_L5_PREAMBLE_UW, type SbasMessageCb, type SbfBdsNavResult, type SbfCnavEphemeris, type SbfCnavResult, type SbfGalEphemeris, type SbfGalNavResult, type SbfGeoL5Result, type SbfGeoNavResult, type SbfGloNavResult, type SbfGpsNavResult, type SbfHasMessage, type SbfHasResult, type SbfIonoUtcResult, type SbfMeasEpoch, type SbfMeasurement, type SbfNavCounts, type SbfNavigation, type SbfParseResult, type SbfPvt, type SbfPvtResult, type SbfReceiverSetup, decodeSbfNavigation, feedGeoBlock, feedGeoL5Block, isSbasL1Preamble, isSbasL5Correction, parseSbfBdsNav, parseSbfCnav, parseSbfGalNav, parseSbfGeoL5, parseSbfGeoNav, parseSbfGloNav, parseSbfGpsNav, parseSbfHas, parseSbfIonoUtc, parseSbfMeas, parseSbfPvt, parseSbfReceiverSetup, sbasL5MessageName, sbasL5MessageType, crc16 as sbfCrc16, scanSbfFrames };
613
+ export { CnavEphemeris, type DfmcCensus, type DfmcMessageCb, type GeoL5Result, HasMessage, ReceiverPvt, SBAS_L5_MT_NAMES, SBAS_L5_PREAMBLE_UW, type SbasMessageCb, type SbfBdsNavResult, type SbfCnavEphemeris, type SbfCnavResult, type SbfGalEphemeris, type SbfGalNavResult, type SbfGeoL5Result, type SbfGeoNavResult, type SbfGloNavResult, type SbfGpsNavResult, type SbfHasMessage, type SbfHasResult, type SbfIonoUtcResult, type SbfMeasEpoch, type SbfMeasurement, type SbfNavCounts, type SbfNavigation, type SbfParseResult, type SbfPvt, type SbfPvtResult, type SbfReceiverSetup, decodeSbfNavigation, feedGeoBlock, feedGeoL5Block, isSbasL1Preamble, isSbasL5Correction, parseSbfBdsNav, parseSbfCnav, parseSbfGalNav, parseSbfGeoL5, parseSbfGeoNav, parseSbfGloNav, parseSbfGpsNav, parseSbfHas, parseSbfIonoUtc, parseSbfMeas, parseSbfPvt, parseSbfReceiverSetup, sbasL5MessageName, sbasL5MessageType, crc16 as sbfCrc16, scanSbfFrames };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gnss-js",
3
- "version": "2.0.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,