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

if torque converter is not active set state of torque converter

parent a8049e1f
Branches
Tags
No related merge requests found
......@@ -207,6 +207,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Source = this
};
}
TorqueConverter.Locked(CurrentState.InTorque, CurrentState.InAngularVelocity);
return NextComponent.Request(absTime, dt, inTorque, inAngularVelocity, dryRun);
}
......@@ -245,6 +247,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var retval = IdleController.Request(absTime, dt, 0.SI<NewtonMeter>(), null);
retval.ClutchPowerRequest = 0.SI<Watt>();
CurrentState.SetState(0.SI<NewtonMeter>(), retval.EngineSpeed, outTorque, outAngularVelocity);
TorqueConverter.Locked(CurrentState.InTorque, CurrentState.InAngularVelocity);
CurrentState.Gear = 0;
return retval;
}
......@@ -257,10 +262,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
container[ModalResultField.Gear] = Disengaged || DataBus.VehicleStopped ? 0 : Gear;
container[ModalResultField.TC_Locked] = TorqueConverterLocked;
//container[ModalResultField.TCv] =;
//container[ModalResultField.TCmu] =;
//container[ModalResultField.TC_n_Out] =;
//container[ModalResultField.TC_M_Out] =;
container[ModalResultField.P_gbx_loss] = CurrentState.TransmissionTorqueLoss * avgInAngularSpeed;
container[ModalResultField.P_gbx_inertia] = CurrentState.InertiaTorqueLossOut * avgInAngularSpeed;
container[ModalResultField.P_gbx_in] = CurrentState.InTorque * avgInAngularSpeed;
......@@ -286,12 +288,6 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Disengaged = true;
}
AdvanceState();
if (TorqueConverterLocked) {
// Todo!?
TorqueConverter.Locked(CurrentState.InTorque, CurrentState.InAngularVelocity);
} else {
TorqueConverter.CommitSimulationStep();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment