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

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

TC: in case the operating point for the TC is below idle speed use the same as...

TC: in case the operating point for the TC is below idle speed use the same as in case no operating point is found at all
parent 915de634
No related branches found
Tags Build/v0.7.3.2171
No related merge requests found
......@@ -205,7 +205,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
operatingPoint = ModelData.FindOperatingPoint(maxInputSpeed, outAngularVelocity);
}
if (operatingPoint.InAngularVelocity.IsSmaller(DataBus.EngineIdleSpeed)) {
operatingPoint = ModelData.FindOperatingPoint(DataBus.EngineIdleSpeed, outAngularVelocity);
operatingPoint = ModelData.FindOperatingPoint(VectoMath.Max(DataBus.EngineIdleSpeed, 0.8 * DataBus.EngineSpeed), outAngularVelocity);
}
return operatingPoint;
} catch (VectoException ve) {
......
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