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

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

transmissionlossmap: display value in debugger

parent fa87a30e
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.Gearbox
/// <returns>Torque loss as seen on input side (towards the engine).</returns>
public LossMapResult GetTorqueLoss(PerSecond outAngularVelocity, NewtonMeter outTorque)
{
var result = new TransmissionLossMap.LossMapResult();
var result = new LossMapResult();
var torqueLoss = _lossMap.Interpolate(outAngularVelocity.ConvertTo().Rounds.Per.Minute.Value() * _ratio,
outTorque.Value() / _ratio);
......@@ -104,6 +104,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.Gearbox
return result;
}
[DebuggerDisplay("{Value} (extrapolated: {Extrapolated})")]
public class LossMapResult
{
public bool Extrapolated;
......
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