fix: 修改旧定位点获取不到的问题

This commit is contained in:
xiaoyan-5800X 2022-12-13 11:29:47 +08:00
parent 7299e1e993
commit f04b2a5892

View File

@ -753,7 +753,7 @@ public class AutoTakePictureActivity extends BaseActivity implements View.OnClic
.filter(it-> {
if (startMatchEnableDirection) {
double dataBearing = it.getAngle();
if (currentBearing!=0&&(Math.abs(dataBearing-currentBearing)<=90 || Math.abs(dataBearing-currentBearing)>=270)) {
if (Math.abs(dataBearing-currentBearing)<=90 || Math.abs(dataBearing-currentBearing)>=270) {
return true;
} else {
// 根据方向判定无法匹配
@ -2088,8 +2088,8 @@ public class AutoTakePictureActivity extends BaseActivity implements View.OnClic
double geometry = GeometryTools.distanceToDouble(startLatLng, endLatLng);//
speed = (float) (geometry * 3600 / 1000);
}
oldCurrentLocation = currentPoint;
}
oldCurrentLocation = currentPoint;
speedAndBearing[0] = speed;
speedAndBearing[1] = bearing;