[670][data-center] 新增接管状态回调

This commit is contained in:
xinfengkun
2024-09-24 16:27:40 +08:00
parent 090641f250
commit 87e80dd847
3 changed files with 133 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ import com.mogo.eagle.core.function.call.autopilot.CallerStartAutopilotFailedLis
import com.mogo.eagle.core.function.call.autopilot.CallerSweeperFutianCleanSystemListenerManager
import com.mogo.eagle.core.function.call.autopilot.CallerSweeperFutianCloudTaskListenerManager
import com.mogo.eagle.core.function.call.autopilot.CallerNodeStateListenerManager
import com.mogo.eagle.core.function.call.autopilot.CallerTakeoverListenerManager
import com.mogo.eagle.core.function.call.autopilot.CallerV2XListenerManager
import com.mogo.eagle.core.function.call.autopilot.CallerV2nNioEventListenerManager
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
@@ -204,6 +205,7 @@ class MoGoAdasListenerImpl : OnAdasListener {
vehicleState: VehicleStateOuterClass.VehicleState?
) {
CallerAutopilotActionsListenerManager.setVehicleState(vehicleState)
CallerTakeoverListenerManager.setVehicleState(vehicleState)
if (vehicleState != null) {
// 处理车辆状态
CallerChassisStatesListenerManager.invokeStates(vehicleState)
@@ -248,6 +250,7 @@ class MoGoAdasListenerImpl : OnAdasListener {
chassisStates: ChassisStatesOuterClass.ChassisStates?
) {
CallerAutopilotActionsListenerManager.setChassisStates(chassisStates)
CallerTakeoverListenerManager.setChassisStates(chassisStates)
if (chassisStates != null) {
CallerChassisStatesListenerManager.invokeNewStates(chassisStates)
chassisStates.taskSystemStates?.let { taskSystemStates ->