@aibee/crc-bmap 0.1.8 → 0.1.9

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/lib/bmap.esm.js CHANGED
@@ -9709,6 +9709,9 @@ var ImuPosition = class {
9709
9709
  delta_px;
9710
9710
  delta_py;
9711
9711
  constructor() {
9712
+ this.init();
9713
+ }
9714
+ init() {
9712
9715
  this.fre = 100;
9713
9716
  this.accH_fifo = [];
9714
9717
  this.accH_time_fifo = [];
@@ -9749,7 +9752,7 @@ var ImuPosition = class {
9749
9752
  this.delta_py = 0;
9750
9753
  }
9751
9754
  reset() {
9752
- this.constructor();
9755
+ this.init();
9753
9756
  }
9754
9757
  set_init_pose(pose = [0, 0]) {
9755
9758
  this.last_px = pose[0];