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

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

if search braking power finds a value <0 => overload response. driver strategy...

if search braking power finds a value <0 => overload response. driver strategy has to find another way to proceed...
(can happen if the gear is disengaged and the requested deceleration can not be reached, i.e. the deceleration is higher)
parent 1d8ca489
No related branches found
No related tags found
No related merge requests found
......@@ -393,8 +393,13 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
};
}
Log.Debug("Found operating point for breaking. dt: {0}, acceleration: {1}", operatingPoint.SimulationInterval,
operatingPoint.Acceleration);
Log.Debug("Found operating point for breaking. dt: {0}, acceleration: {1} brakingPower: {2}",
operatingPoint.SimulationInterval,
operatingPoint.Acceleration, DataBus.BreakPower);
if (DataBus.BreakPower < 0) {
DataBus.BreakPower = 0.SI<Watt>();
return new ResponseOverload { Source = this };
}
retVal = NextComponent.Request(absTime, operatingPoint.SimulationInterval, operatingPoint.Acceleration, gradient);
......
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