根据身份状态选择性初始化地图采集模块

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2022-02-17 11:33:55 +08:00
parent 70c6c1e8b2
commit b03ae9cb09
2 changed files with 30 additions and 13 deletions

View File

@@ -49,7 +49,10 @@ class MoGoAutopilotProvider :
// TODO 临时方案根据不同的身份标识连接不同的工控机IP
when (FunctionBuildConfig.appIdentityMode) {
0 -> // 司机
{
CallerMapDataCollectorManager.registerOnMapCollectTaskListener(this)
AdasManager.getInstance().create(context, "192.168.1.102")
}
1 -> // 乘客
AdasManager.getInstance().create(context, "192.168.1.103")
else -> // 默认采用UDP寻址方式
@@ -62,7 +65,6 @@ class MoGoAutopilotProvider :
AdasManager.getInstance().setOnAdasListener(MoGoAdasListenerImpl())
// 同步数据给工控机的服务
AsyncDataToAutopilotServer.INSTANCE.initServer()
CallerMapDataCollectorManager.registerOnMapCollectTaskListener(this)
}
/**