增加了设置连接工控机IP的调用

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2021-12-21 18:03:55 +08:00
parent 9bbb5ede54
commit cee45c4fb4
21 changed files with 145 additions and 317 deletions

View File

@@ -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)
}
/**
* 开启自动驾驶
*