Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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
Branches
Tags
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.
Please register or to comment