针对M1关闭了疲劳驾驶检测
This commit is contained in:
@@ -126,22 +126,25 @@ public class V2XLocationListener implements IMogoLocationListener, CarStatusList
|
||||
}
|
||||
}
|
||||
|
||||
// 只有自研车机才有疲劳驾驶检测
|
||||
if (DebugConfig.getCarMachineType() == DebugConfig.CAR_MACHINE_TYPE_SELF_INNOVATE) {
|
||||
V2XAlarmServer.getFatigueDrivingShow(location, drivingShowEntity -> {
|
||||
Logger.i(V2XConst.MODULE_NAME, "疲劳驾驶POI查询结果为: " + GsonUtil.jsonFromObject(drivingShowEntity));
|
||||
// M1 不基于地图的版本没有疲劳检测,原因是车机内置地图版本不一样
|
||||
if (DebugConfig.isMapBased()) {
|
||||
// 只有自研车机才有疲劳驾驶检测
|
||||
if (DebugConfig.getCarMachineType() == DebugConfig.CAR_MACHINE_TYPE_SELF_INNOVATE) {
|
||||
V2XAlarmServer.getFatigueDrivingShow(location, drivingShowEntity -> {
|
||||
Logger.i(V2XConst.MODULE_NAME, "疲劳驾驶POI查询结果为: " + GsonUtil.jsonFromObject(drivingShowEntity));
|
||||
|
||||
String style = V2XServiceManager.getMoGoStatusManager().isMainPageOnResume() ? "1" : "2";
|
||||
trackWithType(V2XPoiTypeEnum.ALERT_FATIGUE_DRIVING, drivingShowEntity.getLon(), drivingShowEntity.getLat(), style);
|
||||
String style = V2XServiceManager.getMoGoStatusManager().isMainPageOnResume() ? "1" : "2";
|
||||
trackWithType(V2XPoiTypeEnum.ALERT_FATIGUE_DRIVING, drivingShowEntity.getLon(), drivingShowEntity.getLat(), style);
|
||||
|
||||
V2XMessageEntity<V2XPushMessageEntity> v2XMessageEntity = new V2XMessageEntity<>();
|
||||
v2XMessageEntity.setType(V2XMessageEntity.V2XTypeEnum.ALERT_FATIGUE_DRIVING);
|
||||
v2XMessageEntity.setContent(drivingShowEntity);
|
||||
v2XMessageEntity.setShowState(drivingShowEntity.isShowWindow());
|
||||
// 广播给ADAS Launcher
|
||||
ADASUtils.broadcastToADAS(V2XServiceManager.getContext(), drivingShowEntity);
|
||||
V2XScenarioManager.getInstance().handlerMessage(v2XMessageEntity);
|
||||
});
|
||||
V2XMessageEntity<V2XPushMessageEntity> v2XMessageEntity = new V2XMessageEntity<>();
|
||||
v2XMessageEntity.setType(V2XMessageEntity.V2XTypeEnum.ALERT_FATIGUE_DRIVING);
|
||||
v2XMessageEntity.setContent(drivingShowEntity);
|
||||
v2XMessageEntity.setShowState(drivingShowEntity.isShowWindow());
|
||||
// 广播给ADAS Launcher
|
||||
ADASUtils.broadcastToADAS(V2XServiceManager.getContext(), drivingShowEntity);
|
||||
V2XScenarioManager.getInstance().handlerMessage(v2XMessageEntity);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 巡航处理
|
||||
|
||||
Reference in New Issue
Block a user