修改调度使用的自动驾驶监听接口为新方式

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2022-02-07 16:18:09 +08:00
parent 39e2518a70
commit 8293190b57
3 changed files with 74 additions and 41 deletions

View File

@@ -2,7 +2,6 @@ package com.mogo.service.adas;
import com.alibaba.android.arouter.facade.template.IProvider;
import com.mogo.eagle.core.data.autopilot.AutopilotControlParameters;
import com.mogo.map.uicontroller.EnumMapUI;
/**
* @author congtaowang
@@ -52,6 +51,7 @@ public interface IMogoADASController extends IProvider {
*
* @return
*/
@Deprecated
int getAutopilotStatus();
/**

View File

@@ -5,7 +5,7 @@ import com.mogo.eagle.core.data.autopilot.AutopilotStationInfo;
/**
* @author congtaowang
* @since 2021/1/18
*
* <p>
* 自动驾驶到站回调
*/
public interface IMogoAdasOCHCallback {
@@ -26,14 +26,20 @@ public interface IMogoAdasOCHCallback {
/**
* 到站
*
* @param data 所到车站的简单信息
* @see com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener#onAutopilotArriveAtStation
*/
void onArriveAt( AutopilotStationInfo data );
@Deprecated
void onArriveAt(AutopilotStationInfo data);
/**
* 自动驾驶状态发生改变
* @param state {@link #STATUS_AUTOPILOT_DISABLE}
*
* @param state {@link #STATUS_AUTOPILOT_DISABLE}
* @param reason 不能自动驾驶的原因
* @see com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener#onAutopilotStatusResponse
*/
@Deprecated
void onStateChanged(int state, String reason);
}