[Sweeper-Cloud] refactor: 常量 AdasOptions -> Constants ;
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 均无效
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user