[6.11.0][adas] 新增云端配置查询和响应接口
This commit is contained in:
@@ -1594,4 +1594,11 @@ class MoGoAutopilotControlProvider :
|
||||
return AdasManager.getInstance().sendCopyBagAbortCopy() > -1
|
||||
}
|
||||
|
||||
/**
|
||||
* 云端配置查询
|
||||
*/
|
||||
override fun sendCloudConfigRequest(): Boolean {
|
||||
return AdasManager.getInstance().sendCloudConfigRequest() > -1
|
||||
}
|
||||
|
||||
}
|
||||
@@ -66,6 +66,7 @@ import com.mogo.eagle.core.function.call.autopilot.CallerBackCameraVideoListener
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisDoorStateListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisGnssListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisStatesListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerCloudConfigListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerColdStartStateListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerFaultManagementStateListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerFsm2024ListenerManager
|
||||
@@ -1473,6 +1474,10 @@ class MoGoAdasListenerImpl : OnAdasListener {
|
||||
CallerDiskCopyManager.invokeCopyBag(diskCopy)
|
||||
}
|
||||
|
||||
override fun onCloudConfig(header: MessagePad.Header, config: MessagePad.CloudConfig) {
|
||||
CallerCloudConfigListenerManager.invokeCloudConfig(config)
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否可以启动自动驾驶
|
||||
* 使用方法查看:app_ipc_monitoring/uiMainActivity/onAutopilotAbility
|
||||
|
||||
@@ -758,4 +758,9 @@ interface IMoGoAutopilotControlProvider : IMoGoFunctionServerProvider {
|
||||
*/
|
||||
fun sendCopyBagAbortCopy(): Boolean
|
||||
|
||||
/**
|
||||
* 云端配置查询
|
||||
*/
|
||||
fun sendCloudConfigRequest(): Boolean
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.mogo.eagle.core.function.api.autopilot
|
||||
|
||||
import mogo.telematics.pad.MessagePad
|
||||
|
||||
/**
|
||||
*云端配置
|
||||
*/
|
||||
interface IMoGoCloudConfigListener {
|
||||
|
||||
|
||||
fun onCloudConfig(config: MessagePad.CloudConfig) {}
|
||||
}
|
||||
|
||||
@@ -1132,5 +1132,10 @@ object CallerAutoPilotControlManager {
|
||||
fun sendCopyBagAbortCopy(): Boolean{
|
||||
return providerApi?.sendCopyBagAbortCopy()?:false
|
||||
}
|
||||
|
||||
/**
|
||||
* 云端配置查询
|
||||
*/
|
||||
fun sendCloudConfigRequest(): Boolean{
|
||||
return providerApi?.sendCloudConfigRequest()?:false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.mogo.eagle.core.function.call.autopilot
|
||||
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoCloudConfigListener
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
import mogo.telematics.pad.MessagePad
|
||||
|
||||
/**
|
||||
*云端配置
|
||||
*/
|
||||
object CallerCloudConfigListenerManager : CallerBase<IMoGoCloudConfigListener>() {
|
||||
|
||||
|
||||
fun invokeCloudConfig(config: MessagePad.CloudConfig) {
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.onCloudConfig(config)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user