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

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

tests for AxleGear are green

parent b9202d07
No related branches found
No related tags found
No related merge requests found
......@@ -45,9 +45,12 @@ namespace TUGraz.VectoCore.Tests.Models.SimulationComponent
var loss = 9401.44062.SI<Watt>();
Assert.AreEqual(Formulas.PowerToTorque(PvD + loss, angSpeed * gbxData.AxleGearData.Ratio), mockPort.Torque,
Assert.AreEqual(Formulas.PowerToTorque(PvD + loss, angSpeed * gbxData.AxleGearData.Ratio).Double(),
mockPort.Torque.Double(), 0.01,
"Torque Engine Side")
;
Assert.AreEqual((angSpeed * gbxData.AxleGearData.Ratio).Double(), mockPort.AngularVelocity.Double(), 0.01,
"Torque Engine Side");
Assert.AreEqual(angSpeed * gbxData.AxleGearData.Ratio, mockPort.AngularVelocity, "Torque Engine Side");
}
protected PerSecond SpeedToAngularSpeed(double v, double r)
......
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