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 bfeb555b authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

gearbox: allow shortening the traction interruption interval by a small amount...

gearbox: allow shortening the traction interruption interval by a small amount if the next time interval would become too small (e.g. due to inaccurate estimation of the remaining distance from the remaining time interval)
parent f35d4166
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var shiftTimeExceeded = absTime.IsSmaller(_engageTime) &&
_engageTime.IsSmaller(absTime + dt, Constants.SimulationSettings.LowerBoundTimeInterval);
// allow 5% tolerance of shift time
if (shiftTimeExceeded) {
if (shiftTimeExceeded && (_engageTime - absTime) > Constants.SimulationSettings.LowerBoundTimeInterval/2) {
return new ResponseFailTimeInterval {
Source = this,
DeltaT = _engageTime - absTime,
......
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