@aibee/crc-bmap 0.8.20 → 0.8.22

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
@@ -23992,6 +23992,7 @@ var PositioningSystem = class {
23992
23992
  } else if (!this.particleFilter.getPosInitFlag() && this.using_gps && data_type === "gps" /* GPS */) {
23993
23993
  const gps_pos = this.getGpsPosition(data);
23994
23994
  success = gps_pos !== null;
23995
+ console.log("gps_pos", gps_pos, data);
23995
23996
  if (gps_pos) {
23996
23997
  this.particleFilter.initParticlesByPos(
23997
23998
  gps_pos.x,
@@ -24047,9 +24048,6 @@ var PositioningSystem = class {
24047
24048
  * @returns
24048
24049
  */
24049
24050
  getGpsPosition(data) {
24050
- if (data[2] > this.gps_max_horizontalAccuracy) {
24051
- return null;
24052
- }
24053
24051
  return wgs84ToWebMercator(data[0], data[1]);
24054
24052
  }
24055
24053
  resetParticleFilterDist(pos) {