opt BlockStrategy.kt

This commit is contained in:
tongchenfei
2021-01-11 14:18:18 +08:00
parent 3ffec794c7
commit 07f8ccfcb6
6 changed files with 97 additions and 5 deletions

View File

@@ -40,4 +40,40 @@ public class ObuConstant {
* 闯红灯预警
*/
public static final int TYPE_RUSH_RED_LIGHT = 117;
/**
* 盲区辅助
*/
public static final int TYPE_BLIND_ASSIST_WARN = 118;
/**
* 异常车辆预警
*/
public static final int TYPE_UNUSUAL_CAR_WARN = 119;
/**
* 道路危险情况预警
*/
public static final int TYPE_UNUSUAL_ROAD_WARN = 120;
/**
* 交通标牌提示
*/
public static final int TYPE_TRAFFIC_SIGN_INFO = 121;
/**
* 前方拥堵提醒
*/
public static final int TYPE_BLOCK_WARN = 122;
/**
* 紧急车辆提示预警
*/
public static final int TYPE_PRESSING_CAR_WARN = 123;
/**
* 已闯红灯提示
*/
public static final int TYPE_HAS_RUSH_RED_LIGHT = 124;
/**
* 车道汇合预警
*/
public static final int TYPE_LANE_CONVERGE_WARN = 125;
/**
* 限速预警
*/
public static final int TYPE_LIMIT_SPEED_WARN = 126;
}

View File

@@ -36,6 +36,18 @@ class MogoObuEventInfo(){
"39" -> // 行人碰撞预警
ObuConstant.TYPE_ROAD_USER_COLLISION_WARNING
"vip变灯提醒" -> ObuConstant.TYPE_CHANGE_LIGHT_FOR_VIP
"01" -> ObuConstant.TYPE_FRONT_COLLISION_WARNING
"02" -> ObuConstant.TYPE_CROSS_COLLISION_WARNING
"04" -> ObuConstant.TYPE_BLIND_ASSIST_WARN
"07" -> ObuConstant.TYPE_UNUSUAL_CAR_WARN
"09" -> ObuConstant.TYPE_UNUSUAL_ROAD_WARN
"11" -> ObuConstant.TYPE_RUSH_RED_LIGHT
"14" -> ObuConstant.TYPE_TRAFFIC_SIGN_INFO
"15" -> ObuConstant.TYPE_BLOCK_WARN
"16" -> ObuConstant.TYPE_PRESSING_CAR_WARN
"20" -> ObuConstant.TYPE_HAS_RUSH_RED_LIGHT
"21" -> ObuConstant.TYPE_LANE_CONVERGE_WARN
"10" -> ObuConstant.TYPE_LIMIT_SPEED_WARN
null -> -1
else -> type.toInt()
}