Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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

fix: only increase velocity if gear & engine speed during roadsweeping is...

fix: only increase velocity if gear & engine speed during roadsweeping is below target speed (higher engine speeds are allowed)
parent 578e900a
Branches
Tags
No related merge requests found
...@@ -426,7 +426,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -426,7 +426,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
if (DriverStrategy.OverspeedAllowed(targetVelocity, prohibitOverspeed)) { if (DriverStrategy.OverspeedAllowed(targetVelocity, prohibitOverspeed)) {
velocity += DriverData.OverSpeedEcoRoll.OverSpeed; velocity += DriverData.OverSpeedEcoRoll.OverSpeed;
} }
if (DataBus.CycleData.LeftSample.PTOActive == PTOActivity.PTOActivityRoadSweeping) { if (DataBus.CycleData.LeftSample.PTOActive == PTOActivity.PTOActivityRoadSweeping && targetVelocity < DriverStrategy.PTODriveMinSpeed) {
velocity = DriverStrategy.PTODriveMinSpeed; velocity = DriverStrategy.PTODriveMinSpeed;
targetVelocity = velocity; targetVelocity = velocity;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment