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

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

update expected values in bus-aux adapter test due to changes/refactoring in bus-aux

parent 9c89e911
No related branches found
No related tags found
No related merge requests found
......@@ -50,13 +50,12 @@ namespace TUGraz.VectoCore.Tests.Integration.BusAuxiliaries
}
[Test]
[TestCase(12000, 1256, 148, 148, 6086.9321)]
[TestCase(12000, 1256, -48, -148, 6086.9321)]
[TestCase(12000, 1256, 48, -148, 6086.9321)]
[TestCase(12000, 800, 148, 148, 6377.0923)]
[TestCase(12000, 800, -48, -148, 6377.0923)]
[TestCase(12000, 800, 48, -148, 6377.0923)]
[TestCase(12000, 1256, 148, 148, 6087.03221)]
[TestCase(12000, 1256, -48, -148, 6087.03221)]
[TestCase(12000, 1256, 48, -148, 6087.03221)]
[TestCase(12000, 800, 148, 148, 6377.2027)]
[TestCase(12000, 800, -48, -148, 6377.2027)]
[TestCase(12000, 800, 48, -148, 6377.2027)]
public void TestNoSmartAuxDuringDrive(double vehicleWeight, double engineSpeedRpm, double driveLinePower,
double internalPower, double expectedPowerDemand)
{
......@@ -74,17 +73,16 @@ namespace TUGraz.VectoCore.Tests.Integration.BusAuxiliaries
Assert.AreEqual(expectedPowerDemand, (torque * engineSpeed).Value(), 1e-2);
}
[Test]
[TestCase(12000, 1256, 148, 148, 6086.9321)]
[TestCase(12000, 1256, -28, -27, 6086.9321)]
[TestCase(12000, 1256, -28, -29, 6086.9321)]
[TestCase(12000, 1256, -128, -28, 6086.9321)]
[TestCase(12000, 1256, 28, -28, 6086.9321)]
[TestCase(12000, 800, 148, 148, 6377.0923)]
[TestCase(12000, 800, -14, -13, 6377.0923)]
[TestCase(12000, 800, -14, -15, 6377.0923)]
[TestCase(12000, 800, -35, -14, 6377.0923)]
[TestCase(12000, 800, 35, -14, 6377.0923)]
[TestCase(12000, 1256, 148, 148, 6087.0322)]
[TestCase(12000, 1256, -28, -27, 6087.0322)]
[TestCase(12000, 1256, -28, -29, 6087.0322)]
[TestCase(12000, 1256, -128, -28, 6087.03221)]
[TestCase(12000, 1256, 28, -28, 6087.0322)]
[TestCase(12000, 800, 148, 148, 6377.2027)]
[TestCase(12000, 800, -14, -13, 6377.2027)]
[TestCase(12000, 800, -14, -15, 6377.2027)]
[TestCase(12000, 800, -35, -14, 6377.2027)]
[TestCase(12000, 800, 35, -14, 6377.2027)]
public void TestNoSmartAuxDuringCoasting(double vehicleWeight, double engineSpeedRpm, double driveLinePower,
double internalPower, double expectedPowerDemand)
{
......@@ -105,11 +103,10 @@ namespace TUGraz.VectoCore.Tests.Integration.BusAuxiliaries
Assert.AreEqual(expectedPowerDemand, (torque * engineSpeed).Value(), 1e-2);
}
[Test]
[TestCase(12000, 1256, -48, -148, 8954.1396)]
[TestCase(12000, 1256, 48, -148, 8954.1396)]
[TestCase(12000, 800, -48, -148, 8281.5088)]
[TestCase(12000, 800, 48, -148, 8281.5088)]
[TestCase(12000, 1256, -48, -28, 8954.1429)] // smart PS active - power demand below engine drag
[TestCase(12000, 1256, 48, -28, 6087.0322)] // no smart aux active - positive power demand
[TestCase(12000, 800, -48, -28, 8281.5129)] // smart PS active - power demand below engine drag
[TestCase(12000, 800, 48, -28, 6377.2027)] // no smart aux active - positive power demand
public void TestSmartAuxDuringBrake(double vehicleWeight, double engineSpeedRpm, double driveLinePower,
double internalPower, double expectedPowerDemand)
{
......
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