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

Skip to content
Snippets Groups Projects
Commit de3f4e42 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

DrivingCycleDataReader: Set PTOActive to false when duplicating distance...

DrivingCycleDataReader: Set PTOActive to false when duplicating distance entries due to 0km/h and stop.
parent 981007d8
No related branches found
No related tags found
No related merge requests found
......@@ -231,6 +231,7 @@ namespace TUGraz.VectoCore.InputData.Reader
// vehicle stops. duplicate current distance entry with 0 waiting time
var tmp = new DrivingCycleData.DrivingCycleEntry(entry) {
StoppingTime = 0.SI<Second>(),
PTOActive = false,
RoadGradient = entry.RoadGradient,
VehicleTargetSpeed = i < entries.Count - 1 ? entries[i + 1].VehicleTargetSpeed : 0.SI<MeterPerSecond>()
};
......
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