[fix]
[添加启动条件]
This commit is contained in:
yangyakun
2024-10-15 11:54:06 +08:00
parent 633d1b1a4f
commit a116d6b8f9

View File

@@ -400,6 +400,18 @@ object LineManager : CallerBase<ILineCallback>() {
// 启动自动驾驶
fun startAutopilot() {
if(startStation==null|| endStation==null){
ToastUtils.showShort("未设置起始或终点站点")
return
}
startStation?.let {
if(!it.isLeaving){
ToastUtils.showShort("请滑动出发后再启动自驾")
return
}
}
/**
* 存在Session
*/