diff --git a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/server/AsyncDataToAutopilotServer.kt b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/server/AsyncDataToAutopilotServer.kt index d4259fc4f8..63ef5b7958 100644 --- a/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/server/AsyncDataToAutopilotServer.kt +++ b/core/function-impl/mogo-core-function-datacenter/src/main/java/com/mogo/eagle/core/function/datacenter/autopilot/server/AsyncDataToAutopilotServer.kt @@ -42,14 +42,12 @@ class AsyncDataToAutopilotServer private constructor() : IMoGoTrafficLightListen CallerTrafficLightListenerManager.addListener(TAG, this) } - @SuppressLint("CheckResult") override fun onAutopilotStatusResponse(state: Int) { createSubscribe?.let { if (!it.isDisposed) { bizLog(SceneConstant.M_ADAS_IMPL + TAG, "自动驾驶状态变化,取消前置轨迹请求,间隔2s重新请求底盘轨迹") createSubscribe?.dispose() } - when (state) { IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_RUNNING -> { createSubscribe = Observable.timer(2000L, TimeUnit.MILLISECONDS)