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

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

gearbox; remove code only used for testing

parent 06f71c8a
No related branches found
No related tags found
No related merge requests found
......@@ -343,13 +343,6 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var response = NextComponent.Request(absTime, dt, inTorque, inAngularVelocity);
var shiftAllowed = !inAngularVelocity.IsEqual(0) && !DataBus.VehicleSpeed.IsEqual(0);
// just for testing the new shift strategy, how individual values are computed for every timestep
if (!(response is ResponseDryRun)) {
_strategy?.ShiftRequired(
absTime, dt, outTorque, outAngularVelocity, inTorque,
response.EngineSpeed, Gear, EngageTime);
}
if (response is ResponseSuccess && shiftAllowed) {
var shiftRequired = _strategy?.ShiftRequired(absTime, dt, outTorque, outAngularVelocity, inTorque,
response.EngineSpeed, Gear, EngageTime) ?? false;
......
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