增加adas状态同步,增加自动驾驶异常状态处理
This commit is contained in:
@@ -141,4 +141,6 @@ public interface IMogoADASController extends IProvider {
|
||||
void removeAdasOCHCallback();
|
||||
|
||||
void onAutopilotArriveLike( int type );
|
||||
|
||||
int getAutopilotStatus();
|
||||
}
|
||||
|
||||
@@ -11,5 +11,26 @@ public
|
||||
*/
|
||||
interface IMogoAdasOCHCallback {
|
||||
|
||||
/**
|
||||
* 不可自动驾驶
|
||||
*/
|
||||
int STATUS_AUTOPILOT_DISABLE = 0;
|
||||
/**
|
||||
* 可自动驾驶
|
||||
*/
|
||||
int STATUS_AUTOPILOT_ENABLE = 1;
|
||||
/**
|
||||
* 自动驾驶中
|
||||
*/
|
||||
int STATUS_AUTOPILOT_RUNNING = 2;
|
||||
|
||||
|
||||
void onArriveAt( AdasOCHData data );
|
||||
|
||||
/**
|
||||
* 自动驾驶状态发生改变
|
||||
* @param state {@link #STATUS_AUTOPILOT_DISABLE}
|
||||
* @param reason 不能自动驾驶的原因
|
||||
*/
|
||||
void onStateChanged(int state, String reason);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user