[Sweeper-Cloud] refactor: 常量 AdasOptions -> Constants ;

This commit is contained in:
aibingbing
2023-06-14 19:40:55 +08:00
parent 0cbfcafadf
commit 0a2fa12244
3 changed files with 24 additions and 24 deletions

View File

@@ -319,11 +319,11 @@ class MoGoAutopilotControlProvider :
}
override fun startAutoPilot(controlParameters: AutopilotControlParameters) {
startAutoPilot(controlParameters, AdasOptions.AUTOPILOT_SOURCE.PAD)
startAutoPilot(controlParameters, Constants.AUTOPILOT_SOURCE.PAD)
}
override fun startAutoPilotByMoFang(controlParameters: AutopilotControlParameters) {
startAutoPilot(controlParameters, AdasOptions.AUTOPILOT_SOURCE.MO_FANG)
startAutoPilot(controlParameters, Constants.AUTOPILOT_SOURCE.MO_FANG)
}
private fun startAutoPilot(controlParameters: AutopilotControlParameters, source: Int) {

View File

@@ -29,28 +29,6 @@ public class AdasOptions {
int ASSIGN = 1;
}
/**
* 启动自动驾驶-Source类型
*/
public interface AUTOPILOT_SOURCE {
/**
* pad模拟
*/
int PAD_SIMULATE = 0;
/**
* pad业务
*/
int PAD = 1;
/**
* AICloud
*/
int AI_CLOUD = 2;
/**
* 魔方
*/
int MO_FANG = 3;
}
/**
* 是否是客户端 true客户度乘客屏 false服务端司机屏
* 当是乘客端的情况下 ipcConnectionMode ipcAssignIP ipcFixationIPSet 均无效

View File

@@ -134,4 +134,26 @@ public class Constants {
int RAMP_THETA_VALID = 7;//环岛模式开关
int WEAK_NET_SLOW_DOWN = 8;//弱网减速停车策略开关
}
/**
* 启动自动驾驶-Source类型
*/
public interface AUTOPILOT_SOURCE {
/**
* pad模拟
*/
int PAD_SIMULATE = 0;
/**
* pad业务
*/
int PAD = 1;
/**
* AICloud
*/
int AI_CLOUD = 2;
/**
* 魔方
*/
int MO_FANG = 3;
}
}