[6.11.0][adas] 新增云端配置查询和响应接口

This commit is contained in:
xinfengkun
2025-03-12 18:26:37 +08:00
parent 67ead188c2
commit cb7a487052
14 changed files with 162 additions and 1 deletions

View File

@@ -1594,4 +1594,11 @@ class MoGoAutopilotControlProvider :
return AdasManager.getInstance().sendCopyBagAbortCopy() > -1
}
/**
* 云端配置查询
*/
override fun sendCloudConfigRequest(): Boolean {
return AdasManager.getInstance().sendCloudConfigRequest() > -1
}
}

View File

@@ -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

View File

@@ -758,4 +758,9 @@ interface IMoGoAutopilotControlProvider : IMoGoFunctionServerProvider {
*/
fun sendCopyBagAbortCopy(): Boolean
/**
* 云端配置查询
*/
fun sendCloudConfigRequest(): Boolean
}

View File

@@ -0,0 +1,13 @@
package com.mogo.eagle.core.function.api.autopilot
import mogo.telematics.pad.MessagePad
/**
*云端配置
*/
interface IMoGoCloudConfigListener {
fun onCloudConfig(config: MessagePad.CloudConfig) {}
}

View File

@@ -1132,5 +1132,10 @@ object CallerAutoPilotControlManager {
fun sendCopyBagAbortCopy(): Boolean{
return providerApi?.sendCopyBagAbortCopy()?:false
}
/**
* 云端配置查询
*/
fun sendCloudConfigRequest(): Boolean{
return providerApi?.sendCloudConfigRequest()?:false
}
}

View File

@@ -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)
}
}
}