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

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

fix: activate only pto mode 3 at drive-off

parent 210aa2a9
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,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 = entry.PTOActive,
PTOActive = entry.PTOActive == PTOActivity.PTOActivityRoadSweeping ? entry.PTOActive : PTOActivity.Inactive,
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