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 44e4b655 authored by Stefanos DOUMPOULAKIS's avatar Stefanos DOUMPOULAKIS
Browse files

Merge branch 'bugfix/CodeEU-376' into 'amdm2/develop'

Bugfix/code eu 376

See merge request vecto/vecto!160
parents 4a2949e5 089fb20b
Branches
Tags
No related merge requests found
......@@ -77,12 +77,12 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
public readonly MeterPerSecond PTODriveMinSpeed;
protected EcoRoll EcoRollState;
protected internal EcoRoll EcoRollState;
protected PCCSegments PCCSegments;
public PCCStates PCCState => pccState;
protected internal PCCStates pccState = PCCStates.OutsideSegment;
protected bool ATEcoRollReleaseLockupClutch;
protected internal bool ATEcoRollReleaseLockupClutch;
public DefaultDriverStrategy(IVehicleContainer container)
{
......@@ -998,6 +998,11 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
second = Driver.DrivingActionBrake(absTime, ds, targetVelocity, gradient, first);
break;
case ResponseSpeedLimitExceeded _:
if (DriverStrategy.EcoRollState.State == EcoRollStates.EcoRollOn &&
DataBus.GearboxInfo.GearboxType.AutomaticTransmission() && DriverStrategy.ATEcoRollReleaseLockupClutch) {
DriverStrategy.EcoRollState.State = EcoRollStates.EcoRollOff;
DataBus.GearboxCtl.DisengageGearbox = false;
}
second = Driver.DrivingActionBrake(absTime, ds, velocityWithOverspeed, gradient);
debug.Add("[DMD.HRE-3] SpeedLimitExceeded->Brake", second);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment