[Change]
优化小地图布局 修复启动异常 Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -15,7 +15,6 @@ import com.mogo.eagle.core.function.autopilot.adapter.MoGoAdasListenerImpl
|
||||
import com.mogo.eagle.core.function.autopilot.adapter.MoGoAdasMsgConnectStatusListenerImpl
|
||||
import com.mogo.eagle.core.function.autopilot.adapter.MoGoHandAdasMsgManager
|
||||
import com.mogo.eagle.core.function.autopilot.server.AsyncDataToAutopilotServer
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotManager
|
||||
import com.mogo.eagle.core.function.call.map.CallerMapDataCollectorManager
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.Logger
|
||||
import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr
|
||||
@@ -49,12 +48,12 @@ class MoGoAutopilotProvider :
|
||||
CupidLogUtils.setIsWriteLog(false)
|
||||
// TODO 临时方案,根据不同的身份标识,连接不同的工控机IP
|
||||
when (FunctionBuildConfig.appIdentityMode) {
|
||||
0 -> // 司机
|
||||
0x00 -> // 司机
|
||||
{
|
||||
CallerMapDataCollectorManager.registerOnMapCollectTaskListener(this)
|
||||
AdasManager.getInstance().create(context, "192.168.1.102")
|
||||
}
|
||||
1 -> // 乘客
|
||||
0x01 -> // 乘客
|
||||
{
|
||||
// 乘客端默认接收绘制全局路径+引导线
|
||||
FunctionBuildConfig.isDemoMode = true
|
||||
@@ -72,7 +71,7 @@ class MoGoAutopilotProvider :
|
||||
// 同步数据给工控机的服务
|
||||
AsyncDataToAutopilotServer.INSTANCE.initServer()
|
||||
// 同步是否开启美化模式
|
||||
CallerAutoPilotManager.setDemoMode(FunctionBuildConfig.isDemoMode)
|
||||
setDemoMode(FunctionBuildConfig.isDemoMode)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -336,11 +336,11 @@ public abstract class MainMoGoApplication extends AbsMogoApplication {
|
||||
*/
|
||||
switch (FunctionBuildConfig.appIdentityMode) {
|
||||
// 司机身份专属模块
|
||||
case 0:
|
||||
case 0x00:
|
||||
// 地图数据收集模块
|
||||
MogoModulePaths.addModuleFunctionServer(new MogoModule(MogoServicePaths.PATH_MAP_DATA_COLLECT_PROVIDER, "MoGoMapDataCollector"));
|
||||
break;
|
||||
case 1:
|
||||
case 0x01:
|
||||
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
android:id="@+id/smallMapDirectionView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="30px"
|
||||
android:layout_marginBottom="30px"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user