Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

fix: activate only pto mode 3 at drive-off

(cherry picked from commit e3e14109)
parent c8dfbdda
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