@neilberkman/sidereon 0.20.0 → 0.22.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/pkg/sidereon.js CHANGED
@@ -5950,6 +5950,54 @@ export class GnssInsFilter {
5950
5950
  }
5951
5951
  return takeFromExternrefTable0(ret[0]);
5952
5952
  }
5953
+ /**
5954
+ * Apply a gated wheeled-vehicle non-holonomic constraint update.
5955
+ * @returns {any}
5956
+ */
5957
+ updateNonHolonomic() {
5958
+ const ret = wasm.gnssinsfilter_updateNonHolonomic(this.__wbg_ptr);
5959
+ if (ret[2]) {
5960
+ throw takeFromExternrefTable0(ret[1]);
5961
+ }
5962
+ return takeFromExternrefTable0(ret[0]);
5963
+ }
5964
+ /**
5965
+ * Apply a non-holonomic constraint and record checkpoints when an update applies.
5966
+ * @param {FusionRtsHistoryBuilder} history
5967
+ * @returns {any}
5968
+ */
5969
+ updateNonHolonomicRecorded(history) {
5970
+ _assertClass(history, FusionRtsHistoryBuilder);
5971
+ const ret = wasm.gnssinsfilter_updateNonHolonomicRecorded(this.__wbg_ptr, history.__wbg_ptr);
5972
+ if (ret[2]) {
5973
+ throw takeFromExternrefTable0(ret[1]);
5974
+ }
5975
+ return takeFromExternrefTable0(ret[0]);
5976
+ }
5977
+ /**
5978
+ * Apply a gated zero-velocity and zero-angular-rate update.
5979
+ * @returns {any}
5980
+ */
5981
+ updateStationary() {
5982
+ const ret = wasm.gnssinsfilter_updateStationary(this.__wbg_ptr);
5983
+ if (ret[2]) {
5984
+ throw takeFromExternrefTable0(ret[1]);
5985
+ }
5986
+ return takeFromExternrefTable0(ret[0]);
5987
+ }
5988
+ /**
5989
+ * Apply a stationary update and record checkpoints when an update applies.
5990
+ * @param {FusionRtsHistoryBuilder} history
5991
+ * @returns {any}
5992
+ */
5993
+ updateStationaryRecorded(history) {
5994
+ _assertClass(history, FusionRtsHistoryBuilder);
5995
+ const ret = wasm.gnssinsfilter_updateStationaryRecorded(this.__wbg_ptr, history.__wbg_ptr);
5996
+ if (ret[2]) {
5997
+ throw takeFromExternrefTable0(ret[1]);
5998
+ }
5999
+ return takeFromExternrefTable0(ret[0]);
6000
+ }
5953
6001
  /**
5954
6002
  * Apply a tight raw-observation epoch against a broadcast ephemeris source.
5955
6003
  * @param {BroadcastEphemeris} broadcast
@@ -16148,6 +16196,258 @@ export class Sp3ClockReferenceOffset {
16148
16196
  }
16149
16197
  if (Symbol.dispose) Sp3ClockReferenceOffset.prototype[Symbol.dispose] = Sp3ClockReferenceOffset.prototype.free;
16150
16198
 
16199
+ /**
16200
+ * One coordinate-label reconciliation applied before SP3 merge consensus.
16201
+ */
16202
+ export class Sp3FrameReconciliationReport {
16203
+ static __wrap(ptr) {
16204
+ const obj = Object.create(Sp3FrameReconciliationReport.prototype);
16205
+ obj.__wbg_ptr = ptr;
16206
+ Sp3FrameReconciliationReportFinalization.register(obj, obj.__wbg_ptr, obj);
16207
+ return obj;
16208
+ }
16209
+ __destroy_into_raw() {
16210
+ const ptr = this.__wbg_ptr;
16211
+ this.__wbg_ptr = 0;
16212
+ Sp3FrameReconciliationReportFinalization.unregister(this);
16213
+ return ptr;
16214
+ }
16215
+ free() {
16216
+ const ptr = this.__destroy_into_raw();
16217
+ wasm.__wbg_sp3framereconciliationreport_free(ptr, 0);
16218
+ }
16219
+ /**
16220
+ * Caller assertion set, empty unless assertion reconciliation was used.
16221
+ * @returns {string[]}
16222
+ */
16223
+ get assertedLabelSet() {
16224
+ const ret = wasm.sp3framereconciliationreport_assertedLabelSet(this.__wbg_ptr);
16225
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
16226
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
16227
+ return v1;
16228
+ }
16229
+ /**
16230
+ * True when the published catalog row was applied in reverse.
16231
+ * @returns {boolean}
16232
+ */
16233
+ get catalogInverse() {
16234
+ const ret = wasm.sp3framereconciliationreport_catalogInverse(this.__wbg_ptr);
16235
+ return ret !== 0;
16236
+ }
16237
+ /**
16238
+ * Source frame of the published catalog row used for Helmert reconciliation.
16239
+ * @returns {string | undefined}
16240
+ */
16241
+ get catalogSourceFrame() {
16242
+ const ret = wasm.sp3framereconciliationreport_catalogSourceFrame(this.__wbg_ptr);
16243
+ let v1;
16244
+ if (ret[0] !== 0) {
16245
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
16246
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
16247
+ }
16248
+ return v1;
16249
+ }
16250
+ /**
16251
+ * Target frame of the published catalog row used for Helmert reconciliation.
16252
+ * @returns {string | undefined}
16253
+ */
16254
+ get catalogTargetFrame() {
16255
+ const ret = wasm.sp3framereconciliationreport_catalogTargetFrame(this.__wbg_ptr);
16256
+ let v1;
16257
+ if (ret[0] !== 0) {
16258
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
16259
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
16260
+ }
16261
+ return v1;
16262
+ }
16263
+ /**
16264
+ * Inclusive decimal-year span of affected records.
16265
+ * @returns {Float64Array}
16266
+ */
16267
+ get epochYearSpan() {
16268
+ const ret = wasm.sp3framereconciliationreport_epochYearSpan(this.__wbg_ptr);
16269
+ var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
16270
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
16271
+ return v1;
16272
+ }
16273
+ /**
16274
+ * True when both labels resolved to the same terrestrial realization.
16275
+ * @returns {boolean}
16276
+ */
16277
+ get identity() {
16278
+ const ret = wasm.sp3framereconciliationreport_identity(this.__wbg_ptr);
16279
+ return ret !== 0;
16280
+ }
16281
+ /**
16282
+ * Reconciliation mechanism: "asserted_equivalence" or "helmert".
16283
+ * @returns {string}
16284
+ */
16285
+ get method() {
16286
+ let deferred1_0;
16287
+ let deferred1_1;
16288
+ try {
16289
+ const ret = wasm.sp3framereconciliationreport_method(this.__wbg_ptr);
16290
+ deferred1_0 = ret[0];
16291
+ deferred1_1 = ret[1];
16292
+ return getStringFromWasm0(ret[0], ret[1]);
16293
+ } finally {
16294
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
16295
+ }
16296
+ }
16297
+ /**
16298
+ * Published-table provenance for the catalog entry.
16299
+ * @returns {string | undefined}
16300
+ */
16301
+ get provenance() {
16302
+ const ret = wasm.sp3framereconciliationreport_provenance(this.__wbg_ptr);
16303
+ let v1;
16304
+ if (ret[0] !== 0) {
16305
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
16306
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
16307
+ }
16308
+ return v1;
16309
+ }
16310
+ /**
16311
+ * Number of satellite position records covered by the reconciliation.
16312
+ * @returns {number}
16313
+ */
16314
+ get recordsAffected() {
16315
+ const ret = wasm.sp3framereconciliationreport_recordsAffected(this.__wbg_ptr);
16316
+ return ret >>> 0;
16317
+ }
16318
+ /**
16319
+ * Published transform reference epoch, if a catalog entry was used.
16320
+ * @returns {number | undefined}
16321
+ */
16322
+ get referenceEpochYear() {
16323
+ const ret = wasm.sp3framereconciliationreport_referenceEpochYear(this.__wbg_ptr);
16324
+ return ret[0] === 0 ? undefined : ret[1];
16325
+ }
16326
+ /**
16327
+ * Rotation parameters in milliarcseconds, empty for non-catalog identity.
16328
+ * @returns {Float64Array}
16329
+ */
16330
+ get rotationMas() {
16331
+ const ret = wasm.sp3framereconciliationreport_rotationMas(this.__wbg_ptr);
16332
+ var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
16333
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
16334
+ return v1;
16335
+ }
16336
+ /**
16337
+ * Rotation rates in milliarcseconds per year.
16338
+ * @returns {Float64Array}
16339
+ */
16340
+ get rotationMasPerYear() {
16341
+ const ret = wasm.sp3framereconciliationreport_rotationMasPerYear(this.__wbg_ptr);
16342
+ var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
16343
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
16344
+ return v1;
16345
+ }
16346
+ /**
16347
+ * Scale parameter in parts per billion, undefined for non-catalog identity.
16348
+ * @returns {number | undefined}
16349
+ */
16350
+ get scalePpb() {
16351
+ const ret = wasm.sp3framereconciliationreport_scalePpb(this.__wbg_ptr);
16352
+ return ret[0] === 0 ? undefined : ret[1];
16353
+ }
16354
+ /**
16355
+ * Scale rate in parts per billion per year.
16356
+ * @returns {number | undefined}
16357
+ */
16358
+ get scalePpbPerYear() {
16359
+ const ret = wasm.sp3framereconciliationreport_scalePpbPerYear(this.__wbg_ptr);
16360
+ return ret[0] === 0 ? undefined : ret[1];
16361
+ }
16362
+ /**
16363
+ * Resolved source terrestrial frame for Helmert reconciliation.
16364
+ * @returns {string | undefined}
16365
+ */
16366
+ get sourceFrame() {
16367
+ const ret = wasm.sp3framereconciliationreport_sourceFrame(this.__wbg_ptr);
16368
+ let v1;
16369
+ if (ret[0] !== 0) {
16370
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
16371
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
16372
+ }
16373
+ return v1;
16374
+ }
16375
+ /**
16376
+ * Source index in the mergeSp3 input array.
16377
+ * @returns {number}
16378
+ */
16379
+ get sourceIndex() {
16380
+ const ret = wasm.sp3framereconciliationreport_sourceIndex(this.__wbg_ptr);
16381
+ return ret >>> 0;
16382
+ }
16383
+ /**
16384
+ * Original coordinate-system label on that source.
16385
+ * @returns {string}
16386
+ */
16387
+ get sourceLabel() {
16388
+ let deferred1_0;
16389
+ let deferred1_1;
16390
+ try {
16391
+ const ret = wasm.sp3framereconciliationreport_sourceLabel(this.__wbg_ptr);
16392
+ deferred1_0 = ret[0];
16393
+ deferred1_1 = ret[1];
16394
+ return getStringFromWasm0(ret[0], ret[1]);
16395
+ } finally {
16396
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
16397
+ }
16398
+ }
16399
+ /**
16400
+ * Resolved target terrestrial frame for Helmert reconciliation.
16401
+ * @returns {string | undefined}
16402
+ */
16403
+ get targetFrame() {
16404
+ const ret = wasm.sp3framereconciliationreport_targetFrame(this.__wbg_ptr);
16405
+ let v1;
16406
+ if (ret[0] !== 0) {
16407
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
16408
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
16409
+ }
16410
+ return v1;
16411
+ }
16412
+ /**
16413
+ * Target coordinate-system label, taken from source 0.
16414
+ * @returns {string}
16415
+ */
16416
+ get targetLabel() {
16417
+ let deferred1_0;
16418
+ let deferred1_1;
16419
+ try {
16420
+ const ret = wasm.sp3framereconciliationreport_targetLabel(this.__wbg_ptr);
16421
+ deferred1_0 = ret[0];
16422
+ deferred1_1 = ret[1];
16423
+ return getStringFromWasm0(ret[0], ret[1]);
16424
+ } finally {
16425
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
16426
+ }
16427
+ }
16428
+ /**
16429
+ * Translation parameters in millimetres, empty for non-catalog identity.
16430
+ * @returns {Float64Array}
16431
+ */
16432
+ get translationMm() {
16433
+ const ret = wasm.sp3framereconciliationreport_translationMm(this.__wbg_ptr);
16434
+ var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
16435
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
16436
+ return v1;
16437
+ }
16438
+ /**
16439
+ * Translation rates in millimetres per year.
16440
+ * @returns {Float64Array}
16441
+ */
16442
+ get translationMmPerYear() {
16443
+ const ret = wasm.sp3framereconciliationreport_translationMmPerYear(this.__wbg_ptr);
16444
+ var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
16445
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
16446
+ return v1;
16447
+ }
16448
+ }
16449
+ if (Symbol.dispose) Sp3FrameReconciliationReport.prototype[Symbol.dispose] = Sp3FrameReconciliationReport.prototype.free;
16450
+
16151
16451
  /**
16152
16452
  * A batch of interpolated SP3 states.
16153
16453
  */
@@ -16297,6 +16597,23 @@ export class Sp3MergeReport {
16297
16597
  const ret = wasm.sp3mergereport_agreementCount(this.__wbg_ptr);
16298
16598
  return ret >>> 0;
16299
16599
  }
16600
+ /**
16601
+ * @returns {number}
16602
+ */
16603
+ get frameReconciliationCount() {
16604
+ const ret = wasm.sp3mergereport_frameReconciliationCount(this.__wbg_ptr);
16605
+ return ret >>> 0;
16606
+ }
16607
+ /**
16608
+ * Coordinate-label reconciliations applied before consensus.
16609
+ * @returns {Sp3FrameReconciliationReport[]}
16610
+ */
16611
+ get frameReconciliations() {
16612
+ const ret = wasm.sp3mergereport_frameReconciliations(this.__wbg_ptr);
16613
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
16614
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
16615
+ return v1;
16616
+ }
16300
16617
  /**
16301
16618
  * @returns {number}
16302
16619
  */
@@ -27122,6 +27439,25 @@ export function solveStatic(sp3, epochs, options) {
27122
27439
  return StaticSolution.__wrap(ret[0]);
27123
27440
  }
27124
27441
 
27442
+ /**
27443
+ * Solve one static reference-station coordinate from paired RINEX OBS plus SP3.
27444
+ * @param {Sp3} ephemeris
27445
+ * @param {RinexObs} reference_obs
27446
+ * @param {RinexObs} rover_obs
27447
+ * @param {any} config
27448
+ * @returns {any}
27449
+ */
27450
+ export function solveStaticReferenceStationRinex(ephemeris, reference_obs, rover_obs, config) {
27451
+ _assertClass(ephemeris, Sp3);
27452
+ _assertClass(reference_obs, RinexObs);
27453
+ _assertClass(rover_obs, RinexObs);
27454
+ const ret = wasm.solveStaticReferenceStationRinex(ephemeris.__wbg_ptr, reference_obs.__wbg_ptr, rover_obs.__wbg_ptr, config);
27455
+ if (ret[2]) {
27456
+ throw takeFromExternrefTable0(ret[1]);
27457
+ }
27458
+ return takeFromExternrefTable0(ret[0]);
27459
+ }
27460
+
27125
27461
  /**
27126
27462
  * Solve one static RTK baseline directly from paired RINEX OBS plus SP3.
27127
27463
  *
@@ -27957,6 +28293,21 @@ export function validateAgainstSp3Ids(records, ids) {
27957
28293
  return takeFromExternrefTable0(ret[0]);
27958
28294
  }
27959
28295
 
28296
+ /**
28297
+ * Blend a first good post-outage fix back over an outage span.
28298
+ * @param {any} states
28299
+ * @param {any} first_good_fix
28300
+ * @param {any} config
28301
+ * @returns {any}
28302
+ */
28303
+ export function velocityMatchOutage(states, first_good_fix, config) {
28304
+ const ret = wasm.velocityMatchOutage(states, first_good_fix, config);
28305
+ if (ret[2]) {
28306
+ throw takeFromExternrefTable0(ret[1]);
28307
+ }
28308
+ return takeFromExternrefTable0(ret[0]);
28309
+ }
28310
+
27960
28311
  /**
27961
28312
  * Estimate robust station velocity with the MIDAS method.
27962
28313
  *
@@ -28510,6 +28861,10 @@ function __wbg_get_imports() {
28510
28861
  const ret = Sp3ClockReferenceOffset.__wrap(arg0);
28511
28862
  return ret;
28512
28863
  },
28864
+ __wbg_sp3framereconciliationreport_new: function(arg0) {
28865
+ const ret = Sp3FrameReconciliationReport.__wrap(arg0);
28866
+ return ret;
28867
+ },
28513
28868
  __wbg_sp3mergeflag_new: function(arg0) {
28514
28869
  const ret = Sp3MergeFlag.__wrap(arg0);
28515
28870
  return ret;
@@ -29073,6 +29428,9 @@ const Sp3AgreementMetricFinalization = (typeof FinalizationRegistry === 'undefin
29073
29428
  const Sp3ClockReferenceOffsetFinalization = (typeof FinalizationRegistry === 'undefined')
29074
29429
  ? { register: () => {}, unregister: () => {} }
29075
29430
  : new FinalizationRegistry(ptr => wasm.__wbg_sp3clockreferenceoffset_free(ptr, 1));
29431
+ const Sp3FrameReconciliationReportFinalization = (typeof FinalizationRegistry === 'undefined')
29432
+ ? { register: () => {}, unregister: () => {} }
29433
+ : new FinalizationRegistry(ptr => wasm.__wbg_sp3framereconciliationreport_free(ptr, 1));
29076
29434
  const Sp3InterpolationFinalization = (typeof FinalizationRegistry === 'undefined')
29077
29435
  ? { register: () => {}, unregister: () => {} }
29078
29436
  : new FinalizationRegistry(ptr => wasm.__wbg_sp3interpolation_free(ptr, 1));
Binary file