@aibee/crc-bmap 0.8.19 → 0.8.21
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.cjs.min.js +1 -1
- package/lib/bmap.esm.js +2 -0
- package/lib/bmap.esm.min.js +1 -1
- package/lib/bmap.min.js +1 -1
- package/package.json +1 -1
package/lib/bmap.esm.js
CHANGED
|
@@ -23965,6 +23965,7 @@ var PositioningSystem = class {
|
|
|
23965
23965
|
if (this.using_gps && data_type === "gps" /* GPS */) {
|
|
23966
23966
|
if (this.last_beacon_time === null || time - this.last_beacon_time > 5e3) {
|
|
23967
23967
|
const gps_pos = this.getGpsPosition(data);
|
|
23968
|
+
console.log("gps_pos", gps_pos);
|
|
23968
23969
|
success = gps_pos !== null;
|
|
23969
23970
|
if (gps_pos) {
|
|
23970
23971
|
this.particleFilter.update(gps_pos, this.gps_horizontalAccuracy);
|
|
@@ -23991,6 +23992,7 @@ var PositioningSystem = class {
|
|
|
23991
23992
|
} else if (!this.particleFilter.getPosInitFlag() && this.using_gps && data_type === "gps" /* GPS */) {
|
|
23992
23993
|
const gps_pos = this.getGpsPosition(data);
|
|
23993
23994
|
success = gps_pos !== null;
|
|
23995
|
+
console.log("gps_pos", gps_pos, data);
|
|
23994
23996
|
if (gps_pos) {
|
|
23995
23997
|
this.particleFilter.initParticlesByPos(
|
|
23996
23998
|
gps_pos.x,
|