[opt3.0][adas lib] 自动驾驶启动统计对象下沉到adas-data中

This commit is contained in:
xinfengkun
2023-02-21 16:58:06 +08:00
parent b192238894
commit 961e1eb102
12 changed files with 38 additions and 38 deletions

View File

@@ -0,0 +1,60 @@
package com.zhjt.mogo.adas.data.bean;
import mogo.telematics.pad.MessagePad;
import mogo_msg.MogoReportMsg;
/**
* 自动驾驶启动统计
*/
public class AutopilotStatistics {
/**
* 启动自动驾驶后的状态
*/
public interface AUTOPILOT_START_STATUS {
/**
* 成功
*/
int SUCCESSFUL = 0;
/**
* 失败
*/
int FAILED = 1;
/**
* 取消
*/
int CANCEL = 2;
}
/**
* 启动自动驾驶后状态
* 0 成功
* 1 失败
* 2 取消
* {@link AUTOPILOT_START_STATUS}
*/
public final int status;
/**
* 用时
* 单位ms
*/
public final long usedTime;
/**
* 下发的启动自动驾驶命令
*/
public final MessagePad.SetAutopilotModeReq req;
/**
* 失败的消息
*/
public final MogoReportMsg.MogoReportMessage failedMessage;
public AutopilotStatistics(int status, long usedTime, MessagePad.SetAutopilotModeReq req, MogoReportMsg.MogoReportMessage failedMessage) {
this.status = status;
this.usedTime = usedTime;
this.req = req;
this.failedMessage = failedMessage;
}
}