[670][adas][data-center] 新增冷启动状态查询以及响应接口;新增环形路线功能:启动自驾新增字段、新增启动自驾新字段查询以及响应接口、新增到站查询和响应接口;新增电源盒协议接口相关接口:

This commit is contained in:
xinfengkun
2024-09-18 16:29:48 +08:00
parent f6f6d8b306
commit 9dd1f61583
33 changed files with 2279 additions and 31 deletions

View File

@@ -5,7 +5,7 @@ import com.mogo.eagle.core.data.autopilot.AutopilotControlParameters
import com.mogo.eagle.core.data.biz.trafficlight.TrafficLightResult
import com.mogo.eagle.core.data.deva.badcase.BagManagerEntity
import com.mogo.eagle.core.function.api.base.IMoGoFunctionServerProvider
import com.zhjt.mogo.adas.data.Adas
import com.zhjt.mogo.adas.common.power.PowerUnitChannel
import com.zhjt.mogo.adas.data.AdasConstants
import com.zhjt.mogo.adas.data.bean.NodeStateInfo
import com.zhjt.mogo.adas.data.sweeper.bootable.SweeperBootable.IsBootable
@@ -551,6 +551,70 @@ interface IMoGoAutopilotControlProvider : IMoGoFunctionServerProvider {
*/
fun sendSweeperCloudSuspendResumeTaskResp(reqNo: String, bigTaskActionResp: BigTaskActionResp): Boolean
/**
* 发送电源状态查询请求
*
* @return 消息是否添加到WS消息发送队列返回值为非0的正整数时表示下发消息的消息ID
* * >=0表示添加到WS发送消息队列
* * =0表示乘客屏模式添加到WS发送消息队列
* * -1L添加到WS发送消息队列失败
*/
fun sendPowerUnitSTSRequest(): Long
/**
* 发送单通道电源控制请求
*
* @param channel 通道
* @param cmd 0关闭1打开
* @return 消息是否添加到WS消息发送队列返回值为非0的正整数时表示下发消息的消息ID
* * >=0表示添加到WS发送消息队列
* * =0表示乘客屏模式添加到WS发送消息队列
* * -1L添加到WS发送消息队列失败
*/
fun sendPowerUnitSingleChannelControl(channel: PowerUnitChannel, cmd: Int): Long
/**
* 发送电源控制重置请求
*
* @return 消息是否添加到WS消息发送队列返回值为非0的正整数时表示下发消息的消息ID
* * >=0表示添加到WS发送消息队列
* * =0表示乘客屏模式添加到WS发送消息队列
* * -1L添加到WS发送消息队列失败
*/
fun sendPowerUnitReset(): Long
/**
* 查询冷启动状态
*
* @return 消息是否添加到WS消息发送队列返回值为非0的正整数时表示下发消息的消息ID
* * >=0表示添加到WS发送消息队列
* * =0表示乘客屏模式添加到WS发送消息队列
* * -1L添加到WS发送消息队列失败
*/
fun sendSsmFuncQueryColdStartState(): Long
/**
* 查询自驾命令状态
* 查询:是否首次进自驾、订单号、次数
*
* @return 消息是否添加到WS消息发送队列返回值为非0的正整数时表示下发消息的消息ID
* * >=0表示添加到WS发送消息队列
* * =0表示乘客屏模式添加到WS发送消息队列
* * -1L添加到WS发送消息队列失败
*/
fun sendSsmFuncQueryAutoPilotInfo(): Long
/**
* 查询到站信息
*
* @param orderId 订单号
* @return 消息是否添加到WS消息发送队列返回值为非0的正整数时表示下发消息的消息ID
* * >=0表示添加到WS发送消息队列
* * =0表示乘客屏模式添加到WS发送消息队列
* * -1L添加到WS发送消息队列失败
*/
fun sendSsmFuncQueryAutoPilotStation(orderId: String): Long
/**
* 打开点云绘制
*

View File

@@ -34,6 +34,32 @@ interface IMoGoAutopilotStatusListener {
*/
fun onAutopilotDockerInfo(dockerVersion:String){}
/**
* 自驾命令状态查询响应
* 返回 是否首次进自驾、订单号、次数
* 查询调用CallerAutoPilotControlManager.sendSsmFuncQueryAutoPilotInfo()
*
* @param token 唯一消息ID
* @param timestamp 消息发送时间 单位:毫秒
* @param autoPilotInfo 数据 null表示 PadSsmMsg中的消息体为null
*/
fun onAutoPilotInfo(token: Long, timestamp: Long, autoPilotInfo: SsmInfo.AutoPilotInfo?) {}
/**
* 到站信息查询响应
* 查询调用CallerAutoPilotControlManager.sendSsmFuncQueryAutoPilotStation(orderId: String)
*
* @param token 唯一消息ID
* @param timestamp 消息发送时间 单位:毫秒
* @param autoPilotStation 数据 null表示 PadSsmMsg中的消息体为null
*/
fun onAutoPilotStation(
token: Long,
timestamp: Long,
autoPilotStation: SsmInfo.AutoPilotStation?
) {
}
/**
* 自动驾驶到站
*

View File

@@ -0,0 +1,25 @@
package com.mogo.eagle.core.function.api.autopilot
import system_master.SsmInfo
/**
* 冷启动状态变更上报以及查询状态
*/
interface IMoGoColdStartStateListener {
/**
* 冷启动状态变更上报以及查询状态
*
* @param token 唯一消息ID
* @param timestamp 消息发送时间 单位:毫秒
* @param isQuery 是否是查询 ture查询相应的结果 false表示状态变动域控主动推送
* @param coldStartState 数据 null表示 PadSsmMsg中的消息体为null
*/
fun onColdStartState(
token: Long,
timestamp: Long,
isQuery: Boolean,
coldStartState: SsmInfo.ColdStartState?
)
}