Merge branch '3.3.0merge2master' into 'master'

[3.3.0 merge to msater]

See merge request SCA/L4HA/AndroidApp/MoGoEagleEye!798
This commit is contained in:
pangfan
2023-07-07 09:38:11 +00:00
2 changed files with 6 additions and 6 deletions

View File

@@ -270,14 +270,16 @@ class PM2DrivingModel private constructor() {
d(SceneConstant.M_BUS_P + TAG, "可以接受轨迹")
}
d(SceneConstant.M_BUS_P + TAG, "接受轨迹中")
updateRoutePoints(it.wayPointsList)
it.wayPointsList?.let {list->
updateRoutePoints(list)
}
}
}
}
@Synchronized
fun updateRoutePoints(routePoints: List<MessagePad.Location>?) {
fun updateRoutePoints(routePoints: List<MessagePad.Location>) {
mRoutePoints.clear()
val latLngModels = CoordinateCalculateRouteUtil
.coordinateConverterWgsToGcjLocations(mContext, routePoints)
@@ -487,7 +489,7 @@ class PM2DrivingModel private constructor() {
.getArrivedPointIndexNew(
mWipePreIndex,
mRoutePoints,
mLocation
mLocation!!
)
mWipePreIndex = haveArrivedIndex
d(SceneConstant.M_BUS_P + TAG,
@@ -518,7 +520,7 @@ class PM2DrivingModel private constructor() {
if (mTwoStationsRouts.size > 0 && mLocation != null) {
val lastPointsMap = CoordinateCalculateRouteUtil
.getRemainPointListByCompareNew(mPreRouteIndex, mTwoStationsRouts, mLocation)
.getRemainPointListByCompareNew(mPreRouteIndex, mTwoStationsRouts, mLocation!!)
for (index in lastPointsMap.keys) {
mPreRouteIndex = index
break

View File

@@ -660,13 +660,11 @@ public class SweeperTaskModel implements IMoGoSweeperFutianCloudTaskListener, IM
@Override
public void onAutopilotStatusResponse(int state) {
IMoGoAutopilotStatusListener.super.onAutopilotStatusResponse(state);
// TODO: 2023/6/19 bingbing
}
@Override
public void onAutopilotDockerInfo(@NonNull String dockerVersion) {
IMoGoAutopilotStatusListener.super.onAutopilotDockerInfo(dockerVersion);
// TODO: 2023/6/19 bingbing
}
}