[Add]
增加了设置连接工控机IP的调用 Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -4,7 +4,6 @@ import com.mogo.eagle.core.data.autopilot.AutopilotControlParameters
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotProvider
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
import com.mogo.eagle.core.utilcode.util.LogUtils
|
||||
|
||||
/**
|
||||
*@author xiaoyuzhou
|
||||
@@ -16,10 +15,19 @@ object CallerAutoPilotManager {
|
||||
|
||||
private val providerApi: IMoGoAutopilotProvider
|
||||
get() = CallerBase.getApiInstance(
|
||||
IMoGoAutopilotProvider::class.java,
|
||||
MogoServicePaths.PATH_AUTO_PILOT
|
||||
IMoGoAutopilotProvider::class.java,
|
||||
MogoServicePaths.PATH_AUTO_PILOT
|
||||
)
|
||||
|
||||
/**
|
||||
* 连接自动驾驶域控制器
|
||||
*
|
||||
* @param autoPilotIp 指定与控制器IP
|
||||
*/
|
||||
fun resetIpAddress(autoPilotIp: String) {
|
||||
providerApi.resetIpAddress(autoPilotIp)
|
||||
}
|
||||
|
||||
/**
|
||||
* 开启自动驾驶
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user