[8.4.0]
[b4] [和@yuelei 联调]
This commit is contained in:
@@ -92,6 +92,17 @@ object CallerAutoPilotControlManager {
|
||||
return sessionId
|
||||
}
|
||||
|
||||
/**
|
||||
* 开启自动驾驶
|
||||
*
|
||||
* @param controlParameters 开启自动驾驶的控制参数
|
||||
*/
|
||||
fun sendTaskManagerRunningInfo(): Long {
|
||||
val sessionId = providerApi?.sendTaskManagerRunningInfo() ?: -1L
|
||||
// 更新记录在全局的控制参数
|
||||
return sessionId
|
||||
}
|
||||
|
||||
/**
|
||||
* 开启自动驾驶
|
||||
*
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user