[6.2.0][adas]新增超车的最大速度阈值设置接口
This commit is contained in:
@@ -91,6 +91,12 @@ public class AdasParam {
|
||||
*/
|
||||
public final int fusionMode;
|
||||
|
||||
/**
|
||||
* 超车的最大速度阈值
|
||||
* m/s, 范围[3, 12.5]
|
||||
*/
|
||||
public final double overtakeMaxSpeed;
|
||||
|
||||
public AdasParam(MessagePad.SetParamReq param) {
|
||||
int detouringCmd = -1;
|
||||
double detouringSpeed = -1.0;
|
||||
@@ -107,6 +113,7 @@ public class AdasParam {
|
||||
int v2nToPnc = -1;
|
||||
int v2iToPnc = -1;
|
||||
int fusionMode = -1;
|
||||
double overtakeMaxSpeed = -1.0;
|
||||
|
||||
if (param != null) {
|
||||
int size = param.getReqsCount();
|
||||
@@ -178,6 +185,10 @@ public class AdasParam {
|
||||
if (!TextUtils.isEmpty(value)) {
|
||||
fusionMode = Integer.parseInt(value);
|
||||
}
|
||||
} else if (type == AdasConstants.MapSystemParamType.OVERTAKE_MAX_SPEED_VALUE) {
|
||||
if (!TextUtils.isEmpty(value)) {
|
||||
overtakeMaxSpeed = Double.parseDouble(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -197,6 +208,7 @@ public class AdasParam {
|
||||
this.v2nToPnc = v2nToPnc;
|
||||
this.v2iToPnc = v2iToPnc;
|
||||
this.fusionMode = fusionMode;
|
||||
this.overtakeMaxSpeed = overtakeMaxSpeed;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -214,7 +226,8 @@ public class AdasParam {
|
||||
"\n盲区开关=" + (blindArea == -1 ? "未知" : blindArea == 0 ? "关" : "开") +
|
||||
"\n融合V2N开关=" + (v2nToPnc == -1 ? "未知" : v2nToPnc == 0 ? "不发给PnC" : "发给PnC") +
|
||||
"\n融合V2I开关=" + (v2iToPnc == -1 ? "未知" : v2iToPnc == 0 ? "不发给PnC和鹰眼" : "发给Pnc和鹰眼") +
|
||||
"\n融合模式=" + (fusionMode == -1 ? "未知" : fusionMode == 5 ? "纯路侧模式" : fusionMode == 4 ? "透传模式" : fusionMode == 3 ? "超视距模式" : fusionMode == 2 ? "盲区模式" : "全融合模式")
|
||||
"\n融合模式=" + (fusionMode == -1 ? "未知" : fusionMode == 5 ? "纯路侧模式" : fusionMode == 4 ? "透传模式" : fusionMode == 3 ? "超视距模式" : fusionMode == 2 ? "盲区模式" : "全融合模式") +
|
||||
"\n超车最大速度阈值=" + (overtakeMaxSpeed == -1 ? "未知" : overtakeMaxSpeed + "m/s")
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user