Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 0b25d836 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

pcc: skip non-highway parts

parent 8eca84ae
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,9 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
PCCSegment pccSegment = null;
var targetspeedChanged = 0.SI<Meter>();
foreach (var tuple in Container.RunData.Cycle.Entries.Pairwise(Tuple.Create)) {
if (!tuple.Item1.Highway) {
continue;
}
if (tuple.Item1.Distance.IsEqual(tuple.Item2.Distance)) {
// can't calculate avg slope if difference between two entries is 0
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment