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

Skip to content
Snippets Groups Projects
Commit dffa6b94 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

TorqueConverter: Initialize: When no operating point was found only write a...

TorqueConverter: Initialize: When no operating point was found only write a Log.Warn if outTorque and speed are not zero. Otherwise write a Log.Info.
parent 7febfae3
No related branches found
No related tags found
No related merge requests found
...@@ -82,8 +82,12 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -82,8 +82,12 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
if (operatingPointList.Count > 0) { if (operatingPointList.Count > 0) {
operatingPoint = SelectOperatingPoint(operatingPointList); operatingPoint = SelectOperatingPoint(operatingPointList);
} else { } else {
Log.Warn( if (outTorque.IsEqual(0) && outAngularVelocity.IsEqual(0)) {
"TorqueConverter Initialize: No operating point found. Using output as input values as fallback for initialize."); Log.Info("TorqueConverter Initialize: No operating point found. Using output as input values as fallback for initialize.");
}
else {
Log.Warn("TorqueConverter Initialize: No operating point found. Using output as input values as fallback for initialize.");
}
var inAngularVelocity = outAngularVelocity.LimitTo(DataBus.EngineInfo.EngineIdleSpeed, DataBus.EngineInfo.EngineN95hSpeed); var inAngularVelocity = outAngularVelocity.LimitTo(DataBus.EngineInfo.EngineIdleSpeed, DataBus.EngineInfo.EngineN95hSpeed);
operatingPoint = new TorqueConverterOperatingPoint { operatingPoint = new TorqueConverterOperatingPoint {
OutAngularVelocity = outAngularVelocity, OutAngularVelocity = outAngularVelocity,
......
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