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 2ba338e9 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

Merge pull request #696 in VECTO/vecto-sim from...

Merge pull request #696 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:bugfix/VECTO-797-vecto-abort-with-at-transmission-and-tc-table-value to develop

* commit 'e2a49f32':
  increase tolerance for mod-data test due to switch to line-search as default for AT gearboxes
  increase tolerance for 0 torque in at gearbox due to increased search tolerance
parents 1047ad0b e2a49f32
Branches
Tags
No related merge requests found
...@@ -195,7 +195,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -195,7 +195,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Log.Debug("AT-Gearbox Power Request: torque: {0}, angularVelocity: {1}", outTorque, outAngularVelocity); Log.Debug("AT-Gearbox Power Request: torque: {0}, angularVelocity: {1}", outTorque, outAngularVelocity);
var driveOffSpeed = DataBus.VehicleStopped && outAngularVelocity > 0; var driveOffSpeed = DataBus.VehicleStopped && outAngularVelocity > 0;
var driveOffTorque = CurrentState.Disengaged && outTorque.IsGreater(0, 1e-3); var driveOffTorque = CurrentState.Disengaged && outTorque.IsGreater(0, 1e-2);
if (!dryRun && (driveOffSpeed || driveOffTorque)) { if (!dryRun && (driveOffSpeed || driveOffTorque)) {
Gear = 1; Gear = 1;
CurrentState.TorqueConverterLocked = false; CurrentState.TorqueConverterLocked = false;
......
...@@ -630,7 +630,7 @@ namespace TUGraz.VectoCore.Tests.Reports ...@@ -630,7 +630,7 @@ namespace TUGraz.VectoCore.Tests.Reports
Assert.AreEqual(pEngFcmap.Value(), (pLossTot + pEngInertia + pAux).Value(), 1E-3, "time: {0} distance: {1}", time, Assert.AreEqual(pEngFcmap.Value(), (pLossTot + pEngInertia + pAux).Value(), 1E-3, "time: {0} distance: {1}", time,
distance); distance);
Assert.IsTrue(pLossGbx.IsGreaterOrEqual(pShiftLoss + pGbxInertia), "time: {0} distance: {1}", time, Assert.IsTrue(pLossGbx.IsGreaterOrEqual(pShiftLoss + pGbxInertia, 0.5.SI<Watt>()), "time: {0} distance: {1}", time,
distance); distance);
Assert.AreEqual(pGbxIn.Value(), (pRetIn + pLossGbx + pGbxInertia).Value(), gear != 0 ? 1E-3 : 0.5, Assert.AreEqual(pGbxIn.Value(), (pRetIn + pLossGbx + pGbxInertia).Value(), gear != 0 ? 1E-3 : 0.5,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment