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

Skip to content
Snippets Groups Projects
Commit bcccb16b authored by Guillaume ALIX's avatar Guillaume ALIX
Browse files

HybridStrategy - modifying condition to use previous run DryRunSolution in...

HybridStrategy - modifying condition to use previous run DryRunSolution in DryRun Mode + adding LimitedGbxTorque update

- added definition LimitedGbxTorque solves #462

- adding condition (DataBus.GearboxInfo.TCLocked) to use DryRunSolution
from previous run in DryRunMode solves #326, #348, #457, #458, #459,
#545 and #655 (partially)

- adding condition (!DryRunSolution.Solution.IgnoreReason.EngineSpeedBelowDownshift())
to use DryRunSolution from previous run in DryRunMode solves #346, #352,
 #394, #433, #451, #452, #453, #454 and #655 (combined with previous
condition for this last one)

In some cases, the fact of using previous run Strategy generates a
difference between operating point searched in dryRun Mode and effective
 computation (in non dryRunMode) of the acceleration found, that results
 in an overload the driver can't manage.
parent d0873d39
No related branches found
No related tags found
No related merge requests found
......@@ -440,7 +440,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
return HandleRequestExceedsMaxPower(absTime, dt, outTorque, outAngularVelocity, dryRun,
testRequest);
}
}
else {
LimitedGbxTorque = false;
}
}
}
VehicleHaltTimestamp = DataBus.VehicleInfo.VehicleStopped ? VehicleHaltTimestamp : null;
......@@ -458,7 +461,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
LimitedGbxTorque = false;
}
if (dryRun && DryRunSolution != null && DryRunSolution.DrivingAction == DataBus.DriverInfo.DrivingAction) {
if (dryRun && DryRunSolution != null && DryRunSolution.DrivingAction == DataBus.DriverInfo.DrivingAction && DataBus.GearboxInfo.TCLocked && !DryRunSolution.Solution.IgnoreReason.EngineSpeedBelowDownshift()) {
var tmp = CreateResponse(DryRunSolution.Solution, currentGear);
return tmp;
}
......
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