[b4]
[和@yuelei 联调]
This commit is contained in:
yangyakun
2026-03-11 15:43:28 +08:00
parent f62a3ceb3b
commit 4554eb1f0a
24 changed files with 177 additions and 33 deletions

View File

@@ -92,6 +92,17 @@ object CallerAutoPilotControlManager {
return sessionId
}
/**
* 开启自动驾驶
*
* @param controlParameters 开启自动驾驶的控制参数
*/
fun sendTaskManagerRunningInfo(): Long {
val sessionId = providerApi?.sendTaskManagerRunningInfo() ?: -1L
// 更新记录在全局的控制参数
return sessionId
}
/**
* 开启自动驾驶
*

View File

@@ -0,0 +1,38 @@
package com.mogo.eagle.core.function.call.autopilot
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotActionsListener
import com.mogo.eagle.core.function.call.base.CallerBase
import com.zhjt.mogo.adas.unmanned.task.dto.cmd.TaskLocationQueryResponse
/**
* 能否启动自驾管理类
*/
object CallerTaskListenerManager : CallerBase<IMoGoAutopilotActionsListener>() {
@Volatile
private var runningtaskId = 0L
@Volatile
private var runningLineId = 0L
@Volatile
private var runningTaskLocationInfo: TaskLocationQueryResponse? = null
init {
}
fun isCarRunningTask(): Boolean {
return runningLineId != 0L && runningLineId != 0L
}
fun invokeRunningTaskInfo(
taskId: Long?,
lineId: Long?,
taskLocationQueryResponse: TaskLocationQueryResponse?
) {
this.runningtaskId = taskId ?: 0L
this.runningLineId = lineId ?: 0L
this.runningTaskLocationInfo = taskLocationQueryResponse
}
}