Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

removed special case to 'brake away' all incoming torque when halting -> moved to clutch

parent 56fd1d13
No related branches found
No related tags found
No related merge requests found
......@@ -71,19 +71,6 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
} else {
brakeTorque = BrakePower / avgAngularSpeed;
}
} else {
// check if we want to stand still in the current interval.
// problem: angularVelocity is 0 at the end of the interval: if we don't check for this, the clutch will be slipping and burns up the whole torque.
// 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.ClutchClosed(absTime) && DataBus.DriverBehavior == DrivingBehavior.Braking && !PreviousState.OutAngularVelocity.IsEqual(0) &&
angularVelocity.IsEqual(0)) {
brakeTorque = -torque;
if (!dryRun) {
BrakePower = brakeTorque.Abs() * avgAngularSpeed;
}
}
}
if (!dryRun && BrakePower < 0) {
......
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