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

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

when re-engaging use minimum of current and previous out-angular velocity...

when re-engaging use minimum of current and previous out-angular velocity (fixes testcase VECTO-855 and others)
parent dffc5a0a
No related branches found
No related tags found
No related merge requests found
......@@ -392,7 +392,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var lastGear = Gear;
Gear = DataBus.VehicleStopped
? _strategy.InitGear(absTime, dt, outTorque, outAngularVelocity)
: _strategy.Engage(absTime, dt, outTorque, outAngularVelocity);
: _strategy.Engage(absTime, dt, outTorque, VectoMath.Min(PreviousState.OutAngularVelocity, outAngularVelocity));
if (!DataBus.VehicleStopped) {
if (Gear > lastGear) {
LastUpshift = absTime;
......
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