fix: 修改旧定位点获取不到的问题
This commit is contained in:
parent
7299e1e993
commit
f04b2a5892
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user