Commit f03cf478f390d327052575121453341fc39f8412

Authored by 杨帅
1 parent 7b49da7e

1 轨迹工具恢复过滤精度

config.gradle
@@ -21,7 +21,7 @@ ext { @@ -21,7 +21,7 @@ ext {
21 //编译方式 21 //编译方式
22 debug : false, 22 debug : false,
23 //版本号 23 //版本号
24 - version: "0.6.18", 24 + version: "0.6.19",
25 //Lib库前缀 25 //Lib库前缀
26 packeg : "com.cnlive.module", 26 packeg : "com.cnlive.module",
27 //Lib库名称 27 //Lib库名称
moudle_pedometer/src/main/java/com/cnlive/moudle/collectionTrace/frame/view/CollRunningMapFragmentView.java
@@ -672,9 +672,9 @@ public class CollRunningMapFragmentView implements MvpView, SensorEventListener @@ -672,9 +672,9 @@ public class CollRunningMapFragmentView implements MvpView, SensorEventListener
672 } else { 672 } else {
673 //不是第一次定位状态 673 //不是第一次定位状态
674 //过滤定位精度 674 //过滤定位精度
675 -// if (location.getRadius() > Constant.LOCA_ACCURACY) {  
676 -// return;  
677 -// } 675 + if (location.getRadius() > Constant.LOCA_ACCURACY) {
  676 + return;
  677 + }
678 if (null != currentWalkPoints) { 678 if (null != currentWalkPoints) {
679 if (currentWalkPoints.size() > 0) { 679 if (currentWalkPoints.size() > 0) {
680 //进行判断 680 //进行判断
moudle_pedometer/src/main/java/com/cnlive/moudle/collectionTrace/frame/view/StartTraceFragmentView.java
@@ -425,9 +425,9 @@ public class StartTraceFragmentView implements MvpView, SensorEventListener { @@ -425,9 +425,9 @@ public class StartTraceFragmentView implements MvpView, SensorEventListener {
425 } 425 }
426 426
427 //过滤定位精度 427 //过滤定位精度
428 -// if (location.getRadius() > Constant.LOCA_ACCURACY) {  
429 -// return;  
430 -// } 428 + if (location.getRadius() > Constant.LOCA_ACCURACY) {
  429 + return;
  430 + }
431 currentLatLng = new LatLng(location.getLatitude(), 431 currentLatLng = new LatLng(location.getLatitude(),
432 location.getLongitude()); 432 location.getLongitude());
433 followMyLocation = new MyLocationData.Builder() 433 followMyLocation = new MyLocationData.Builder()