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

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

only compensate torque in brakes when stopping if clutch is engaged (otherwise...

only compensate torque in brakes when stopping if clutch is engaged (otherwise no operating point might be found)
parent 6399fa33
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
// but this could lead to extrapolation of loss maps (in axlegear and gear).
// solution: we check here if the angularVelocity is 0 the first time and brake away all the torque if it is.
// afterwards the vehicle is standing and other mechanisms take over (Driver.DriveTimeInterval)
if (DataBus.DriverBehavior == DrivingBehavior.Braking && !PreviousState.OutAngularVelocity.IsEqual(0) &&
if (DataBus.ClutchClosed(absTime) && DataBus.DriverBehavior == DrivingBehavior.Braking && !PreviousState.OutAngularVelocity.IsEqual(0) &&
angularVelocity.IsEqual(0)) {
brakeTorque = -torque;
if (!dryRun) {
......
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