增加adas状态同步,增加自动驾驶异常状态处理

This commit is contained in:
tongchenfei
2021-01-26 18:26:51 +08:00
parent 233ba7b89f
commit 49874015aa
17 changed files with 246 additions and 30 deletions

View File

@@ -141,4 +141,6 @@ public interface IMogoADASController extends IProvider {
void removeAdasOCHCallback();
void onAutopilotArriveLike( int type );
int getAutopilotStatus();
}

View File

@@ -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);
}