Commit a7a59362 authored by zhouleilei's avatar zhouleilei

解决信号机同步时,车道数据重复问题-新增注释

parent 35bb34be
...@@ -549,6 +549,8 @@ public class PlanSendServiceImpl implements PlanSendService { ...@@ -549,6 +549,8 @@ public class PlanSendServiceImpl implements PlanSendService {
CrossLaneLightsPO minTypeCandidate = null; CrossLaneLightsPO minTypeCandidate = null;
for (CrossLaneLightsPO po : laneList) { for (CrossLaneLightsPO po : laneList) {
//灯组类型:机动车(1圆饼灯;2左转灯;3直行灯;4右转灯;5掉头灯;)
//优先级原则,左转灯优先级最高,掉头其次,其它的保留type值小的,比如:圆饼直行保留圆饼
int type = lightMap.get(po.getLightsId()); int type = lightMap.get(po.getLightsId());
if (type == 2) { if (type == 2) {
if (type2Candidate == null) { if (type2Candidate == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment