Merge branch 'dev_arch_opt_3.0' into dev_robobus-m1-p-app-module_1.0.0_230112_1.0.0
# Conflicts: # OCH/mogo-och-bus-passenger/src/jinlvvan/java/com/mogo/och/bus/passenger/presenter/BaseBusPassengerPresenter.java # OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/model/SweeperOrderModel.java # app/src/main/AndroidManifest.xml
This commit is contained in:
@@ -9,7 +9,7 @@ public class MogoLocationSource extends LocationServiceProvider {
|
||||
@Override
|
||||
public float getBearing() {
|
||||
if (MogoLocationInfoServices.getInstance().getLocation() != null) {
|
||||
return MogoLocationInfoServices.getInstance().getLocation().getBearing();
|
||||
return (float) MogoLocationInfoServices.getInstance().getLocation().getHeading();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -33,7 +33,7 @@ public class MogoLocationSource extends LocationServiceProvider {
|
||||
@Override
|
||||
public float getSpeed() {
|
||||
if (MogoLocationInfoServices.getInstance().getLocation() != null) {
|
||||
return MogoLocationInfoServices.getInstance().getLocation().getSpeed();
|
||||
return MogoLocationInfoServices.getInstance().getLocation().getGnssSpeed();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -81,7 +81,7 @@ public class MogoLocationSource extends LocationServiceProvider {
|
||||
@Override
|
||||
public long getTime() {
|
||||
if (MogoLocationInfoServices.getInstance().getLocation() != null) {
|
||||
return MogoLocationInfoServices.getInstance().getLocation().getTime();
|
||||
return MogoLocationInfoServices.getInstance().getLocation().getSatelliteTime();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ public class LocationUtils {
|
||||
double carLat = carLocal.getLatitude();
|
||||
double poiLon = pointLocal.getLon();
|
||||
double poiLat = pointLocal.getLat();
|
||||
float carAngle = carLocal.getBearing();
|
||||
double carAngle = carLocal.getHeading();
|
||||
|
||||
// 计算车辆与点之间的夹角
|
||||
int diffAngle = DrivingDirectionUtils.getDegreeOfCar2Poi(
|
||||
|
||||
Reference in New Issue
Block a user