[680][adas]启动自驾成功切换数据来源,当FSM2024 2.0及版本以上使用fsm中的Session结果进行判断,当存在fsm2.0以下时使用fsm自动驾驶状态判断,否则使用底盘数据
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.zhjt.mogo.adas.data.bean;
|
||||
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import fsm.Fsm2024;
|
||||
@@ -18,7 +19,7 @@ public class AutopilotStatistics {
|
||||
/**
|
||||
* 成功
|
||||
*/
|
||||
int SUCCESSFUL = 0;
|
||||
int SUCCEED = 0;
|
||||
/**
|
||||
* 失败
|
||||
*/
|
||||
@@ -29,6 +30,14 @@ public class AutopilotStatistics {
|
||||
int CANCEL = 2;
|
||||
}
|
||||
|
||||
public enum Source {
|
||||
LIB,//ADAS库 [用在下取消]
|
||||
REPORT,//系统监控 [用在失败]
|
||||
FSM, //老版FSM [用在成功]
|
||||
FSM2024, //新版FSM [用在成功和失败]
|
||||
CHASSIS//底盘 [用在成功]
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动自动驾驶后状态
|
||||
* 0 成功
|
||||
@@ -62,9 +71,16 @@ public class AutopilotStatistics {
|
||||
@Nullable
|
||||
public final MogoReportMsg.MogoReportMessage failedMessage;
|
||||
|
||||
public AutopilotStatistics(int status, long usedTime, @Nullable MessagePad.SetAutopilotModeReq req, @Nullable Fsm2024.FSMStateMsg fsmState, @Nullable MogoReportMsg.MogoReportMessage failedMessage) {
|
||||
/**
|
||||
* 数据来源
|
||||
*/
|
||||
@NonNull
|
||||
public final Source source;
|
||||
|
||||
public AutopilotStatistics(int status, long usedTime, @NonNull Source source, @Nullable MessagePad.SetAutopilotModeReq req, @Nullable Fsm2024.FSMStateMsg fsmState, @Nullable MogoReportMsg.MogoReportMessage failedMessage) {
|
||||
this.status = status;
|
||||
this.usedTime = usedTime;
|
||||
this.source = source;
|
||||
this.req = req;
|
||||
this.fsmState = fsmState;
|
||||
this.failedMessage = failedMessage;
|
||||
|
||||
Reference in New Issue
Block a user