eagle 小地图去掉已行进路径擦除
This commit is contained in:
@@ -67,13 +67,13 @@ class AutoPilotStatusView @JvmOverloads constructor(
|
||||
CallerHmiListenerManager.invokeCheckAutoPilotBtnListener(false)
|
||||
}
|
||||
}
|
||||
startAutoPilot();
|
||||
// startAutoPilot();
|
||||
}
|
||||
private fun startAutoPilot() {
|
||||
val currentAutopilot = RemoteControlAutoPilotParameters()
|
||||
currentAutopilot.isSpeakVoice = false
|
||||
currentAutopilot.startLatLon = RemoteControlAutoPilotParameters.AutoPilotLonLat(40.199157289445921,116.73675895051454);
|
||||
currentAutopilot.endLatLon = RemoteControlAutoPilotParameters.AutoPilotLonLat(40.199255159538758,116.73274535677977);
|
||||
currentAutopilot.endLatLon = RemoteControlAutoPilotParameters.AutoPilotLonLat(40.198749735647674,116.72147484033961);
|
||||
currentAutopilot.vehicleType = 10
|
||||
MogoApisHandler.getInstance().apis.adasControllerApi.aiCloudToAdasData(currentAutopilot)
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@ public class SmallMapDirectionView
|
||||
// MogoLatLng mogoLatLng = new MogoLatLng(lng.latitude, lng.longitude);
|
||||
// mCoordinatesLatLngCurrent.add(mogoLatLng);
|
||||
// }
|
||||
removeLoction(latLng);
|
||||
// removeLoction(latLng);
|
||||
|
||||
// 结束位置
|
||||
LatLng endLatLng = mCoordinatesLatLng.get(mCoordinatesLatLng.size() - 1);
|
||||
|
||||
@@ -45,7 +45,7 @@ dependencies {
|
||||
// 现有的ADAS的通讯SDK,需要将里面的东西融合到我们项目中
|
||||
compileOnly rootProject.ext.dependencies.adasapi
|
||||
|
||||
api "com.zhidao.support.adas:high:1.2.0.8"
|
||||
api "com.zhidao.support.adas:high:1.2.0.9"
|
||||
implementation rootProject.ext.dependencies.mogoami
|
||||
// implementation "com.zhidao.support.adas:high:1.2.0.7"
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ public class MogoRouteOverlayManager implements IMogoCarLocationChangedListener2
|
||||
|
||||
@Override
|
||||
public void routeResult(List<MogoLatLng> routeList) {
|
||||
Log.e("lianglihui","routeResult:"+routeList.size());
|
||||
RouteOverlayDrawer.getInstance(mContext).putRouteList(routeList);
|
||||
}
|
||||
});
|
||||
@@ -39,11 +40,10 @@ public class MogoRouteOverlayManager implements IMogoCarLocationChangedListener2
|
||||
|
||||
@Override
|
||||
public void onAutopilotTrajectory(List<ADASTrajectoryInfo> trajectoryInfos) {
|
||||
// Log.e("lianglihui","onAutopilotTrajectory");
|
||||
if (trajectoryInfos == null || trajectoryInfos.size() == 0){
|
||||
return;
|
||||
}
|
||||
// Log.e("lianglihui","trajectoryInfos:"+trajectoryInfos.size());
|
||||
Log.e("lianglihui","trajectoryInfos:"+trajectoryInfos.size());
|
||||
List<MogoLatLng> mogoLatLngs = new ArrayList<>();
|
||||
for (ADASTrajectoryInfo a:trajectoryInfos) {
|
||||
mogoLatLngs.add(new MogoLatLng(a.getLat(),a.getLon()));
|
||||
|
||||
@@ -381,8 +381,8 @@ public class MogoADASController implements IMogoADASController {
|
||||
public void onAutopilotTrajectory(List<TrajectoryInfo> trajectorys) {
|
||||
if(trajectorys != null && trajectorys.size() > 0){
|
||||
List<ADASTrajectoryInfo> trajectoryInfoArrayList = new ArrayList<>();
|
||||
TrajectoryInfo t= trajectorys.get(0);
|
||||
Log.e("lianglihui","trajectorys:"+ t.getLat()+"-"+t.getLon()+"-"+System.currentTimeMillis());
|
||||
// TrajectoryInfo t= trajectorys.get(0);
|
||||
Log.e("lianglihui","time:"+ System.currentTimeMillis());
|
||||
for (TrajectoryInfo trajectory : trajectorys){
|
||||
ADASTrajectoryInfo adasTrajectoryInfo = new ADASTrajectoryInfo();
|
||||
adasTrajectoryInfo.setLat(trajectory.getLat());
|
||||
@@ -394,6 +394,7 @@ public class MogoADASController implements IMogoADASController {
|
||||
adasTrajectoryInfo.setAlt(trajectory.getAlt());
|
||||
adasTrajectoryInfo.setKappa(trajectory.getKappa());
|
||||
adasTrajectoryInfo.setTheta(trajectory.getTheta());
|
||||
Log.e("lianglihui","trajectory:"+ trajectory.getLat()+"-"+trajectory.getLon());
|
||||
trajectoryInfoArrayList.add(adasTrajectoryInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user