From 36698cc471622dd6c1c3a0e47f939750131f5c8f Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Wed, 2 Feb 2022 09:38:45 +0100
Subject: [PATCH] bugfix PCC segment pre-processor: if not on highway section,
 set target-speed changed so that in case a highway section starts right after
 a stop, the pcc segment does not reach over the vehicle stop

---
 .../VectoCore/Models/Simulation/Impl/PCCSegmentPreprocessor.cs   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/VectoCore/VectoCore/Models/Simulation/Impl/PCCSegmentPreprocessor.cs b/VectoCore/VectoCore/Models/Simulation/Impl/PCCSegmentPreprocessor.cs
index ff316970b9..507192414d 100644
--- a/VectoCore/VectoCore/Models/Simulation/Impl/PCCSegmentPreprocessor.cs
+++ b/VectoCore/VectoCore/Models/Simulation/Impl/PCCSegmentPreprocessor.cs
@@ -65,6 +65,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
 				// pcc is only applicable on highway sections
 				if (!start.Highway) {
 					pccSegment = null;
+					targetSpeedChanged = end.Distance;
 					continue;
 				}
 
-- 
GitLab