|
|
@ -146,44 +146,55 @@ public class NonAutomaticWarningController extends BaseController { |
|
|
|
case "congestion"://拥堵
|
|
|
|
warningType = "拥堵"; |
|
|
|
dcWarning.setWarningType(1); |
|
|
|
dcWarning.setWarningSubclass("1-1"); |
|
|
|
break; |
|
|
|
case "laneChange"://变道
|
|
|
|
dcWarning.setWarningType(5); |
|
|
|
dcWarning.setWarningSubclass("5-6"); |
|
|
|
break; |
|
|
|
//case "laneChange"://变道
|
|
|
|
// dcWarning.setWarningType();
|
|
|
|
// break;
|
|
|
|
//case "vehicleexist"://机占非
|
|
|
|
// dcWarning.setWarningType();
|
|
|
|
// break;
|
|
|
|
//case "roadBlock"://路障
|
|
|
|
// dcWarning.setWarningType();
|
|
|
|
// break;
|
|
|
|
//case "construction"://施工
|
|
|
|
// dcWarning.setWarningType();
|
|
|
|
// break;
|
|
|
|
case "roadBlock"://路障
|
|
|
|
dcWarning.setWarningType(6); |
|
|
|
dcWarning.setWarningSubclass("6-3"); |
|
|
|
break; |
|
|
|
case "construction"://施工
|
|
|
|
dcWarning.setWarningType(7); |
|
|
|
dcWarning.setWarningSubclass("7-1"); |
|
|
|
break; |
|
|
|
case "llegalParking"://停车
|
|
|
|
warningType = "停车"; |
|
|
|
dcWarning.setWarningType(4); |
|
|
|
dcWarning.setWarningSubclass("4-10"); |
|
|
|
break; |
|
|
|
case "crossLane"://压线
|
|
|
|
dcWarning.setWarningType(5); |
|
|
|
dcWarning.setWarningSubclass("5-2"); |
|
|
|
break; |
|
|
|
case "turnRound"://掉头
|
|
|
|
dcWarning.setWarningType(5); |
|
|
|
dcWarning.setWarningSubclass("5-3"); |
|
|
|
break; |
|
|
|
//case "crossLane"://压线
|
|
|
|
// dcWarning.setWarningType();
|
|
|
|
// break;
|
|
|
|
//case "turnRound"://掉头
|
|
|
|
// dcWarning.setWarningType();
|
|
|
|
// break;
|
|
|
|
case "wrongDirection"://逆行
|
|
|
|
warningType = "逆行"; |
|
|
|
dcWarning.setWarningType(5); |
|
|
|
dcWarning.setWarningSubclass("5-1"); |
|
|
|
break; |
|
|
|
case "pedestrian"://行人
|
|
|
|
warningType = "行人"; |
|
|
|
dcWarning.setWarningType(2); |
|
|
|
dcWarning.setWarningSubclass("2-1"); |
|
|
|
break; |
|
|
|
case "abandonedObject"://抛洒物
|
|
|
|
warningType = "抛洒物"; |
|
|
|
dcWarning.setWarningType(7); |
|
|
|
dcWarning.setWarningType(6); |
|
|
|
dcWarning.setWarningSubclass("6-4"); |
|
|
|
break; |
|
|
|
default://其他
|
|
|
|
warningType = "其他"; |
|
|
|
dcWarning.setWarningType(99); |
|
|
|
dcWarning.setWarningSubclass("99-1"); |
|
|
|
} |
|
|
|
String direction = ""; |
|
|
|
if (Objects.equals(directionName, "上行")) { |
|
|
|