Merge branch 'dev_MogoAP_eagle-220_211207_8.0.15'
# Conflicts: # app/build.gradle
This commit is contained in:
@@ -181,7 +181,7 @@ public class SmallMapDirectionView
|
||||
|
||||
@Override
|
||||
public void onLocationChanged(@Nullable MogoLocation location) {
|
||||
Logger.d(TAG, "onCarLocationChanged2 :" + location.getLatitude()+":"+location.getLongitude());
|
||||
//Logger.d(TAG, "onCarLocationChanged2 :" + location.getLatitude()+":"+location.getLongitude());
|
||||
LatLng currentLatLng = new LatLng(location.getLatitude(), location.getLongitude());
|
||||
//更新车辆位置
|
||||
if (mCarMarker != null) {
|
||||
|
||||
@@ -62,7 +62,7 @@ class MogoTrafficLightManager : IMogoCarLocationChangedListener2 {
|
||||
roadIDResult = it
|
||||
},
|
||||
{
|
||||
Logger.e(TAG, "request road id error : $it")
|
||||
Logger.w(TAG, "request road id error : $it")
|
||||
})
|
||||
}
|
||||
}, {
|
||||
|
||||
@@ -40,7 +40,7 @@ class TrafficLightNetWorkModel {
|
||||
}
|
||||
}
|
||||
onSuccess {
|
||||
if (it.result != null) {
|
||||
if (it?.result != null) {
|
||||
if (it.result.rsCrossId.isNotEmpty() && !it.result.rectLatLngs.isNullOrEmpty()) {
|
||||
onSuccess.invoke(it.result)
|
||||
} else {
|
||||
|
||||
@@ -44,7 +44,7 @@ SNAPSHOT_REPOSITORY_URL=http://nexus.zhidaoauto.com/repository/maven-snapshots/
|
||||
USERNAME=xintai
|
||||
PASSWORD=xintai2018
|
||||
# 编译模式: false - 依赖本地版本, true - 依赖 maven 版本
|
||||
USE_MAVEN_PACKAGE=true
|
||||
USE_MAVEN_PACKAGE=false
|
||||
##plugin 插件
|
||||
android.enableR8.libraries=false
|
||||
android.enableR8=false
|
||||
|
||||
@@ -60,7 +60,7 @@ public class OnAdasListenerAdapter implements OnAdasListener {
|
||||
|
||||
if (bean != null) {
|
||||
int turn_light = bean.getTurn_light(); //转向灯状态 0是正常 1是左转 2是右转
|
||||
Logger.d(TAG, "onCarStateData ---- turn_light = " + turn_light);
|
||||
//Logger.d(TAG, "onCarStateData ---- turn_light = " + turn_light);
|
||||
AmiClientManager.getInstance().setTurnLightState(turn_light);
|
||||
} else {
|
||||
Logger.e(TAG, "bean == null ");
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.mogo.module.service;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
@@ -17,11 +16,13 @@ import com.mogo.commons.debug.DebugConfig;
|
||||
import com.mogo.commons.storage.SpStorage;
|
||||
import com.mogo.commons.voice.AIAssist;
|
||||
import com.mogo.commons.voice.IMogoVoiceCmdCallBack;
|
||||
import com.mogo.map.IDestroyable;
|
||||
import com.mogo.eagle.core.data.autopilot.AutopilotCarStateInfo;
|
||||
import com.mogo.eagle.core.data.map.MogoLatLng;
|
||||
import com.mogo.eagle.core.data.map.MogoLocation;
|
||||
import com.mogo.eagle.core.utilcode.mogo.thread.WorkThreadHandler;
|
||||
import com.mogo.map.IDestroyable;
|
||||
import com.mogo.map.listener.IMogoMapListener;
|
||||
import com.mogo.map.location.IMogoLocationListener;
|
||||
import com.mogo.eagle.core.data.map.MogoLocation;
|
||||
import com.mogo.map.navi.IMogoAimlessModeListener;
|
||||
import com.mogo.map.navi.IMogoCarLocationChangedListener2;
|
||||
import com.mogo.map.navi.IMogoNavi;
|
||||
@@ -32,10 +33,10 @@ import com.mogo.map.uicontroller.IMogoMapUIController;
|
||||
import com.mogo.module.common.MogoApisHandler;
|
||||
import com.mogo.module.common.MogoModule;
|
||||
import com.mogo.module.common.MogoModulePaths;
|
||||
import com.mogo.module.common.datacenter.SnapshotLocationDataCenter;
|
||||
import com.mogo.module.common.entity.MarkerResponse;
|
||||
import com.mogo.module.common.map.MapCenterPointStrategy;
|
||||
import com.mogo.module.common.map.Scene;
|
||||
import com.mogo.module.common.datacenter.SnapshotLocationDataCenter;
|
||||
import com.mogo.module.service.autopilot.AutoPilotRemoteController;
|
||||
import com.mogo.module.service.handler.MainLooperHandler;
|
||||
import com.mogo.module.service.handler.RefreshWorkThreadHandler;
|
||||
@@ -53,7 +54,6 @@ import com.mogo.module.service.ttsConfig.TtsConfigModleData;
|
||||
import com.mogo.realtime.api.MoGoAiCloudRealTime;
|
||||
import com.mogo.service.adas.IMogoADASController;
|
||||
import com.mogo.service.adas.IMogoAdasCarDataCallback;
|
||||
import com.mogo.eagle.core.data.autopilot.AutopilotCarStateInfo;
|
||||
import com.mogo.service.fragmentmanager.FragmentStackTransactionListener;
|
||||
import com.mogo.service.fragmentmanager.IMogoFragmentManager;
|
||||
import com.mogo.service.intent.IMogoIntentListener;
|
||||
@@ -66,9 +66,7 @@ import com.mogo.service.statusmanager.IMogoStatusChangedListener;
|
||||
import com.mogo.service.statusmanager.IMogoStatusManager;
|
||||
import com.mogo.service.statusmanager.StatusDescriptor;
|
||||
import com.mogo.utils.NetworkUtils;
|
||||
import com.mogo.eagle.core.utilcode.mogo.thread.WorkThreadHandler;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
import com.zhidao.locupload.service.UploadDataService;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ public class MogoRouteOverlayManager implements IMoGoAutopilotPlanningListener,
|
||||
@Override
|
||||
public void onAutopilotStatusResponse(@NotNull AutopilotStatusInfo autoPilotStatusInfo) {
|
||||
this.STATUS_AUTOPILOT = autoPilotStatusInfo.getControl_pilotmode();
|
||||
Log.d("lianglihui","onAutopilotStatusResponse:"+STATUS_AUTOPILOT);
|
||||
//Log.d("lianglihui","onAutopilotStatusResponse:"+STATUS_AUTOPILOT);
|
||||
if (STATUS_AUTOPILOT == 1 && mEnding != null){
|
||||
RouteOverlayDrawer.getInstance(mContext).addEndingMarker(mEnding.lat,mEnding.lon);
|
||||
}else {
|
||||
|
||||
@@ -87,7 +87,7 @@ public class RouteOverlayDrawer {
|
||||
// .object(markerShowEntity)
|
||||
}
|
||||
markderOptions.latitude(lat).longitude(lon);
|
||||
Log.d("lianglihui","addEndingMarker-"+lat+":"+lon);
|
||||
//Log.d("lianglihui","addEndingMarker-"+lat+":"+lon);
|
||||
endMarker = MogoApisHandler.getInstance().getApis().getMapServiceApi().getMarkerManager(mContext).addMarker(markerType, markderOptions);
|
||||
if (DebugConfig.isDebug()){
|
||||
ToastUtils.showLong("绘制终点marker,"+lat+":"+lon);
|
||||
@@ -104,7 +104,7 @@ public class RouteOverlayDrawer {
|
||||
}
|
||||
|
||||
public void clearEndingMarker(){
|
||||
Log.d("lianglihui","clearEndingMarker");
|
||||
//Log.d("lianglihui","clearEndingMarker");
|
||||
endMarker = null;
|
||||
MogoApisHandler.getInstance().getApis().getMapServiceApi().getMarkerManager(mContext).removeMarkers(markerType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user