完成了自动驾驶状态信息回传

Signed-off-by: 董宏宇 <martindhy@gmail.com>
This commit is contained in:
董宏宇
2021-10-12 21:24:58 +08:00
parent 870af04059
commit 9802124169
15 changed files with 309 additions and 37 deletions

View File

@@ -1,6 +1,7 @@
package com.mogo.eagle.core.function.api.autopilot;
import com.mogo.eagle.core.data.autopilot.AdasOCHData;
import com.mogo.eagle.core.data.autopilot.AutopilotStatusInfo;
/**
* @author xiaoyuzhou
@@ -24,15 +25,24 @@ public interface IMoGoAutoPilotStatusListener {
/**
* 到站
* 自动驾驶到站
*
* @param data 所到车站的简单信息
*/
void onArriveAt( AdasOCHData data );
void onAutoPilotArriveAtStation(AdasOCHData data);
/**
* 自动驾驶状态发生改变
* @param state {@link #STATUS_AUTOPILOT_DISABLE}
*
* @param state {@link #STATUS_AUTOPILOT_DISABLE}
* @param reason 不能自动驾驶的原因
*/
void onStateChanged(int state, String reason);
void onAutoPilotStateChanged(int state, String reason);
/**
* 自动驾驶状态信息
*
* @param autopilotStatusInfo 状态信息
*/
void onAutoPilotStatusResponse(AutopilotStatusInfo autopilotStatusInfo);
}