@@ -225,6 +225,34 @@ class MogoPrivateObuManager private constructor() {
|
||||
0x17 -> {
|
||||
appId = EventTypeEnum.TYPE_USECASE_ID_ROAD_HUMP_BRIDGE.poiType
|
||||
}
|
||||
//轻轨电车
|
||||
0x18 -> {
|
||||
appId = EventTypeEnum.TYPE_USECASE_ID_ROAD_TRAMCAR.poiType
|
||||
}
|
||||
//人行横道
|
||||
0x19 -> {
|
||||
appId = EventTypeEnum.TYPE_USECASE_ID_ROAD_PEDESTRIAN_CROSSING.poiType
|
||||
}
|
||||
//减速慢行
|
||||
0x1A -> {
|
||||
appId = EventTypeEnum.TYPE_USECASE_ID_ROAD_GIVE_WAY.poiType
|
||||
}
|
||||
//事故易发路段
|
||||
0x1B -> {
|
||||
appId = EventTypeEnum.TYPE_USECASE_ID_ROAD_COLLISION_WARNING.poiType
|
||||
}
|
||||
//环岛行驶
|
||||
0x1C -> {
|
||||
appId = EventTypeEnum.TYPE_USECASE_ID_ROAD_ROUNDABOUTPNG.poiType
|
||||
}
|
||||
//环岛行驶
|
||||
0x1D -> {
|
||||
appId = EventTypeEnum.TYPE_USECASE_ID_ROAD_TEST_SECTION.poiType
|
||||
}
|
||||
//驼峰桥
|
||||
0x1E -> {
|
||||
appId = EventTypeEnum.TYPE_USECASE_ID_ROAD_HUMP_BRIDGE.poiType
|
||||
}
|
||||
}
|
||||
alertContent = EventTypeEnum.getWarningContent(appId)
|
||||
ttsContent = EventTypeEnum.getWarningTts(appId)
|
||||
@@ -308,7 +336,8 @@ class MogoPrivateObuManager private constructor() {
|
||||
// (2) 弱势交通参与者预警信息:CVX_PTC_THREAT_IND
|
||||
override fun onCvxPtcThreatIndInfo(info: CvxPtcThreatIndInfo?) {
|
||||
Logger.d(MogoObuConst.TAG_MOGO_OBU, "onCvxPtcInfoIndInfo ------> $info")
|
||||
if (info != null) {
|
||||
// 交通参与者类型 0x0:未知 UNKNOWN | 0x1:非机动车 NON_MOTOR | 0x2:行人 PEDESTRIAN 0x3:RSU
|
||||
if (info != null && (info.ptc_type == 1 || info.ptc_type == 2)) {
|
||||
Logger.d(
|
||||
MogoObuConst.TAG_MOGO_OBU,
|
||||
"onCvxPtcInfoIndInfo ---status---> ${info.status}"
|
||||
|
||||
Reference in New Issue
Block a user