@neilberkman/sidereon 0.19.0 → 0.19.1
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/package.json +1 -1
- package/pkg/sidereon.d.ts +1884 -1794
- package/pkg/sidereon.js +223 -0
- package/pkg/sidereon_bg.wasm +0 -0
- package/pkg/sidereon_bg.wasm.d.ts +1785 -1770
- package/pkg-node/sidereon.d.ts +75 -0
- package/pkg-node/sidereon.js +227 -0
- package/pkg-node/sidereon_bg.wasm +0 -0
- package/pkg-node/sidereon_bg.wasm.d.ts +1785 -1770
package/pkg/sidereon.js
CHANGED
|
@@ -5042,6 +5042,104 @@ export class FrameStates {
|
|
|
5042
5042
|
}
|
|
5043
5043
|
if (Symbol.dispose) FrameStates.prototype[Symbol.dispose] = FrameStates.prototype.free;
|
|
5044
5044
|
|
|
5045
|
+
/**
|
|
5046
|
+
* Recorded fusion forward-pass history accepted by `smoothFusionRts`.
|
|
5047
|
+
*/
|
|
5048
|
+
export class FusionRtsHistory {
|
|
5049
|
+
static __wrap(ptr) {
|
|
5050
|
+
const obj = Object.create(FusionRtsHistory.prototype);
|
|
5051
|
+
obj.__wbg_ptr = ptr;
|
|
5052
|
+
FusionRtsHistoryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
5053
|
+
return obj;
|
|
5054
|
+
}
|
|
5055
|
+
__destroy_into_raw() {
|
|
5056
|
+
const ptr = this.__wbg_ptr;
|
|
5057
|
+
this.__wbg_ptr = 0;
|
|
5058
|
+
FusionRtsHistoryFinalization.unregister(this);
|
|
5059
|
+
return ptr;
|
|
5060
|
+
}
|
|
5061
|
+
free() {
|
|
5062
|
+
const ptr = this.__destroy_into_raw();
|
|
5063
|
+
wasm.__wbg_fusionrtshistory_free(ptr, 0);
|
|
5064
|
+
}
|
|
5065
|
+
/**
|
|
5066
|
+
* Number of recorded epochs.
|
|
5067
|
+
* @returns {number}
|
|
5068
|
+
*/
|
|
5069
|
+
get epochCount() {
|
|
5070
|
+
const ret = wasm.fusionrtshistory_epochCount(this.__wbg_ptr);
|
|
5071
|
+
return ret >>> 0;
|
|
5072
|
+
}
|
|
5073
|
+
/**
|
|
5074
|
+
* Recorded epochs in forward time order.
|
|
5075
|
+
* @returns {any}
|
|
5076
|
+
*/
|
|
5077
|
+
get epochs() {
|
|
5078
|
+
const ret = wasm.fusionrtshistory_epochs(this.__wbg_ptr);
|
|
5079
|
+
if (ret[2]) {
|
|
5080
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5081
|
+
}
|
|
5082
|
+
return takeFromExternrefTable0(ret[0]);
|
|
5083
|
+
}
|
|
5084
|
+
}
|
|
5085
|
+
if (Symbol.dispose) FusionRtsHistory.prototype[Symbol.dispose] = FusionRtsHistory.prototype.free;
|
|
5086
|
+
|
|
5087
|
+
/**
|
|
5088
|
+
* Builder for recording a fusion forward pass before RTS smoothing.
|
|
5089
|
+
*/
|
|
5090
|
+
export class FusionRtsHistoryBuilder {
|
|
5091
|
+
static __wrap(ptr) {
|
|
5092
|
+
const obj = Object.create(FusionRtsHistoryBuilder.prototype);
|
|
5093
|
+
obj.__wbg_ptr = ptr;
|
|
5094
|
+
FusionRtsHistoryBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
5095
|
+
return obj;
|
|
5096
|
+
}
|
|
5097
|
+
__destroy_into_raw() {
|
|
5098
|
+
const ptr = this.__wbg_ptr;
|
|
5099
|
+
this.__wbg_ptr = 0;
|
|
5100
|
+
FusionRtsHistoryBuilderFinalization.unregister(this);
|
|
5101
|
+
return ptr;
|
|
5102
|
+
}
|
|
5103
|
+
free() {
|
|
5104
|
+
const ptr = this.__destroy_into_raw();
|
|
5105
|
+
wasm.__wbg_fusionrtshistorybuilder_free(ptr, 0);
|
|
5106
|
+
}
|
|
5107
|
+
/**
|
|
5108
|
+
* Return a validated recorded history.
|
|
5109
|
+
* @returns {FusionRtsHistory}
|
|
5110
|
+
*/
|
|
5111
|
+
finish() {
|
|
5112
|
+
const ret = wasm.fusionrtshistorybuilder_finish(this.__wbg_ptr);
|
|
5113
|
+
if (ret[2]) {
|
|
5114
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5115
|
+
}
|
|
5116
|
+
return FusionRtsHistory.__wrap(ret[0]);
|
|
5117
|
+
}
|
|
5118
|
+
/**
|
|
5119
|
+
* Start a history from the filter's current checkpoint.
|
|
5120
|
+
* @param {GnssInsFilter} filter
|
|
5121
|
+
* @returns {FusionRtsHistoryBuilder}
|
|
5122
|
+
*/
|
|
5123
|
+
static fromFilter(filter) {
|
|
5124
|
+
_assertClass(filter, GnssInsFilter);
|
|
5125
|
+
const ret = wasm.fusionrtshistorybuilder_fromFilter(filter.__wbg_ptr);
|
|
5126
|
+
if (ret[2]) {
|
|
5127
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5128
|
+
}
|
|
5129
|
+
return FusionRtsHistoryBuilder.__wrap(ret[0]);
|
|
5130
|
+
}
|
|
5131
|
+
/**
|
|
5132
|
+
* Start an empty history for manual recording.
|
|
5133
|
+
*/
|
|
5134
|
+
constructor() {
|
|
5135
|
+
const ret = wasm.fusionrtshistorybuilder_new();
|
|
5136
|
+
this.__wbg_ptr = ret;
|
|
5137
|
+
FusionRtsHistoryBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
5138
|
+
return this;
|
|
5139
|
+
}
|
|
5140
|
+
}
|
|
5141
|
+
if (Symbol.dispose) FusionRtsHistoryBuilder.prototype[Symbol.dispose] = FusionRtsHistoryBuilder.prototype.free;
|
|
5142
|
+
|
|
5045
5143
|
/**
|
|
5046
5144
|
* WGS84 geodesic input failure class exposed as a stable enum symbol.
|
|
5047
5145
|
* @enum {0}
|
|
@@ -5755,6 +5853,20 @@ export class GnssInsFilter {
|
|
|
5755
5853
|
}
|
|
5756
5854
|
return takeFromExternrefTable0(ret[0]);
|
|
5757
5855
|
}
|
|
5856
|
+
/**
|
|
5857
|
+
* Propagate and record the transition for later fusion RTS smoothing.
|
|
5858
|
+
* @param {any} sample
|
|
5859
|
+
* @param {FusionRtsHistoryBuilder} history
|
|
5860
|
+
* @returns {any}
|
|
5861
|
+
*/
|
|
5862
|
+
propagateRecorded(sample, history) {
|
|
5863
|
+
_assertClass(history, FusionRtsHistoryBuilder);
|
|
5864
|
+
const ret = wasm.gnssinsfilter_propagateRecorded(this.__wbg_ptr, sample, history.__wbg_ptr);
|
|
5865
|
+
if (ret[2]) {
|
|
5866
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5867
|
+
}
|
|
5868
|
+
return takeFromExternrefTable0(ret[0]);
|
|
5869
|
+
}
|
|
5758
5870
|
/**
|
|
5759
5871
|
* Restore this filter from versioned fusion-state bytes.
|
|
5760
5872
|
* @param {Uint8Array} bytes
|
|
@@ -5812,6 +5924,20 @@ export class GnssInsFilter {
|
|
|
5812
5924
|
}
|
|
5813
5925
|
return takeFromExternrefTable0(ret[0]);
|
|
5814
5926
|
}
|
|
5927
|
+
/**
|
|
5928
|
+
* Apply a loose GNSS fix and record checkpoints for fusion RTS smoothing.
|
|
5929
|
+
* @param {any} measurement
|
|
5930
|
+
* @param {FusionRtsHistoryBuilder} history
|
|
5931
|
+
* @returns {any}
|
|
5932
|
+
*/
|
|
5933
|
+
updateLooseRecorded(measurement, history) {
|
|
5934
|
+
_assertClass(history, FusionRtsHistoryBuilder);
|
|
5935
|
+
const ret = wasm.gnssinsfilter_updateLooseRecorded(this.__wbg_ptr, measurement, history.__wbg_ptr);
|
|
5936
|
+
if (ret[2]) {
|
|
5937
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5938
|
+
}
|
|
5939
|
+
return takeFromExternrefTable0(ret[0]);
|
|
5940
|
+
}
|
|
5815
5941
|
/**
|
|
5816
5942
|
* Apply a loose GNSS fix, replaying retained IMU checkpoints when it is late.
|
|
5817
5943
|
* @param {any} measurement
|
|
@@ -5838,6 +5964,22 @@ export class GnssInsFilter {
|
|
|
5838
5964
|
}
|
|
5839
5965
|
return takeFromExternrefTable0(ret[0]);
|
|
5840
5966
|
}
|
|
5967
|
+
/**
|
|
5968
|
+
* Apply a tight broadcast update and record checkpoints for fusion RTS smoothing.
|
|
5969
|
+
* @param {BroadcastEphemeris} broadcast
|
|
5970
|
+
* @param {any} epoch
|
|
5971
|
+
* @param {FusionRtsHistoryBuilder} history
|
|
5972
|
+
* @returns {any}
|
|
5973
|
+
*/
|
|
5974
|
+
updateTightBroadcastRecorded(broadcast, epoch, history) {
|
|
5975
|
+
_assertClass(broadcast, BroadcastEphemeris);
|
|
5976
|
+
_assertClass(history, FusionRtsHistoryBuilder);
|
|
5977
|
+
const ret = wasm.gnssinsfilter_updateTightBroadcastRecorded(this.__wbg_ptr, broadcast.__wbg_ptr, epoch, history.__wbg_ptr);
|
|
5978
|
+
if (ret[2]) {
|
|
5979
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5980
|
+
}
|
|
5981
|
+
return takeFromExternrefTable0(ret[0]);
|
|
5982
|
+
}
|
|
5841
5983
|
/**
|
|
5842
5984
|
* Apply a tight broadcast update, replaying retained IMU checkpoints when it is late.
|
|
5843
5985
|
* @param {BroadcastEphemeris} broadcast
|
|
@@ -5866,6 +6008,22 @@ export class GnssInsFilter {
|
|
|
5866
6008
|
}
|
|
5867
6009
|
return takeFromExternrefTable0(ret[0]);
|
|
5868
6010
|
}
|
|
6011
|
+
/**
|
|
6012
|
+
* Apply a tight SP3 update and record checkpoints for fusion RTS smoothing.
|
|
6013
|
+
* @param {Sp3} sp3
|
|
6014
|
+
* @param {any} epoch
|
|
6015
|
+
* @param {FusionRtsHistoryBuilder} history
|
|
6016
|
+
* @returns {any}
|
|
6017
|
+
*/
|
|
6018
|
+
updateTightSp3Recorded(sp3, epoch, history) {
|
|
6019
|
+
_assertClass(sp3, Sp3);
|
|
6020
|
+
_assertClass(history, FusionRtsHistoryBuilder);
|
|
6021
|
+
const ret = wasm.gnssinsfilter_updateTightSp3Recorded(this.__wbg_ptr, sp3.__wbg_ptr, epoch, history.__wbg_ptr);
|
|
6022
|
+
if (ret[2]) {
|
|
6023
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
6024
|
+
}
|
|
6025
|
+
return takeFromExternrefTable0(ret[0]);
|
|
6026
|
+
}
|
|
5869
6027
|
/**
|
|
5870
6028
|
* Apply a tight SP3 update, replaying retained IMU checkpoints when it is late.
|
|
5871
6029
|
* @param {Sp3} sp3
|
|
@@ -15313,6 +15471,48 @@ export class SmoothCodeResult {
|
|
|
15313
15471
|
}
|
|
15314
15472
|
if (Symbol.dispose) SmoothCodeResult.prototype[Symbol.dispose] = SmoothCodeResult.prototype.free;
|
|
15315
15473
|
|
|
15474
|
+
/**
|
|
15475
|
+
* Smoothed fusion trajectory returned by fixed-interval RTS smoothing.
|
|
15476
|
+
*/
|
|
15477
|
+
export class SmoothedFusionTrajectory {
|
|
15478
|
+
static __wrap(ptr) {
|
|
15479
|
+
const obj = Object.create(SmoothedFusionTrajectory.prototype);
|
|
15480
|
+
obj.__wbg_ptr = ptr;
|
|
15481
|
+
SmoothedFusionTrajectoryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
15482
|
+
return obj;
|
|
15483
|
+
}
|
|
15484
|
+
__destroy_into_raw() {
|
|
15485
|
+
const ptr = this.__wbg_ptr;
|
|
15486
|
+
this.__wbg_ptr = 0;
|
|
15487
|
+
SmoothedFusionTrajectoryFinalization.unregister(this);
|
|
15488
|
+
return ptr;
|
|
15489
|
+
}
|
|
15490
|
+
free() {
|
|
15491
|
+
const ptr = this.__destroy_into_raw();
|
|
15492
|
+
wasm.__wbg_smoothedfusiontrajectory_free(ptr, 0);
|
|
15493
|
+
}
|
|
15494
|
+
/**
|
|
15495
|
+
* Number of smoothed epochs.
|
|
15496
|
+
* @returns {number}
|
|
15497
|
+
*/
|
|
15498
|
+
get epochCount() {
|
|
15499
|
+
const ret = wasm.smoothedfusiontrajectory_epochCount(this.__wbg_ptr);
|
|
15500
|
+
return ret >>> 0;
|
|
15501
|
+
}
|
|
15502
|
+
/**
|
|
15503
|
+
* Smoothed epochs in the same order as the recorded history.
|
|
15504
|
+
* @returns {any}
|
|
15505
|
+
*/
|
|
15506
|
+
get epochs() {
|
|
15507
|
+
const ret = wasm.smoothedfusiontrajectory_epochs(this.__wbg_ptr);
|
|
15508
|
+
if (ret[2]) {
|
|
15509
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
15510
|
+
}
|
|
15511
|
+
return takeFromExternrefTable0(ret[0]);
|
|
15512
|
+
}
|
|
15513
|
+
}
|
|
15514
|
+
if (Symbol.dispose) SmoothedFusionTrajectory.prototype[Symbol.dispose] = SmoothedFusionTrajectory.prototype.free;
|
|
15515
|
+
|
|
15316
15516
|
export class SmoothedTrack {
|
|
15317
15517
|
static __wrap(ptr) {
|
|
15318
15518
|
const obj = Object.create(SmoothedTrack.prototype);
|
|
@@ -26489,6 +26689,20 @@ export function smoothCode(arc, options, hatch_window_cap) {
|
|
|
26489
26689
|
return v1;
|
|
26490
26690
|
}
|
|
26491
26691
|
|
|
26692
|
+
/**
|
|
26693
|
+
* Apply fixed-interval RTS smoothing to recorded fusion history.
|
|
26694
|
+
* @param {FusionRtsHistory} history
|
|
26695
|
+
* @returns {SmoothedFusionTrajectory}
|
|
26696
|
+
*/
|
|
26697
|
+
export function smoothFusionRts(history) {
|
|
26698
|
+
_assertClass(history, FusionRtsHistory);
|
|
26699
|
+
const ret = wasm.smoothFusionRts(history.__wbg_ptr);
|
|
26700
|
+
if (ret[2]) {
|
|
26701
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
26702
|
+
}
|
|
26703
|
+
return SmoothedFusionTrajectory.__wrap(ret[0]);
|
|
26704
|
+
}
|
|
26705
|
+
|
|
26492
26706
|
/**
|
|
26493
26707
|
* Dual-frequency ionosphere-free Hatch carrier-smoothed code.
|
|
26494
26708
|
* @param {any} arc
|
|
@@ -28371,6 +28585,12 @@ const FrameScannerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
28371
28585
|
const FrameStatesFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
28372
28586
|
? { register: () => {}, unregister: () => {} }
|
|
28373
28587
|
: new FinalizationRegistry(ptr => wasm.__wbg_framestates_free(ptr, 1));
|
|
28588
|
+
const FusionRtsHistoryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
28589
|
+
? { register: () => {}, unregister: () => {} }
|
|
28590
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_fusionrtshistory_free(ptr, 1));
|
|
28591
|
+
const FusionRtsHistoryBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
28592
|
+
? { register: () => {}, unregister: () => {} }
|
|
28593
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_fusionrtshistorybuilder_free(ptr, 1));
|
|
28374
28594
|
const GeofenceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
28375
28595
|
? { register: () => {}, unregister: () => {} }
|
|
28376
28596
|
: new FinalizationRegistry(ptr => wasm.__wbg_geofence_free(ptr, 1));
|
|
@@ -28671,6 +28891,9 @@ const SlipResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
28671
28891
|
const SmoothCodeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
28672
28892
|
? { register: () => {}, unregister: () => {} }
|
|
28673
28893
|
: new FinalizationRegistry(ptr => wasm.__wbg_smoothcoderesult_free(ptr, 1));
|
|
28894
|
+
const SmoothedFusionTrajectoryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
28895
|
+
? { register: () => {}, unregister: () => {} }
|
|
28896
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_smoothedfusiontrajectory_free(ptr, 1));
|
|
28674
28897
|
const SmoothedTrackFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
28675
28898
|
? { register: () => {}, unregister: () => {} }
|
|
28676
28899
|
: new FinalizationRegistry(ptr => wasm.__wbg_smoothedtrack_free(ptr, 1));
|
package/pkg/sidereon_bg.wasm
CHANGED
|
Binary file
|