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

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

set gearbox shift-time exceeded to the same interval as the minimum simulation interval

a smaller tolerance causes that the next simulation interval will be smaller than the minimum simulation interval and thus cause other issues (e.g. high inertia torque from engine, etc.)
parent f78fa678
No related branches found
No related tags found
No related merge requests found
......@@ -224,7 +224,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
}
var shiftTimeExceeded = absTime.IsSmaller(_engageTime) &&
_engageTime.IsSmaller(absTime + dt, ModelData.TractionInterruption / 20.0); // allow 5% tolerance of shift time
_engageTime.IsSmaller(absTime + dt, Constants.SimulationSettings.LowerBoundTimeInterval); // allow 5% tolerance of shift time
if (shiftTimeExceeded) {
return new ResponseFailTimeInterval {
Source = this,
......
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