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

Merge pull request #288 in VECTO/vecto-sim from...

Merge pull request #288 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:hotfix/VECTO-364-measured-speed-mode-with-gear-at to master

* commit '23db7659':
  cyclegearbox: report cycle-closed correctly.
parents 991df8cf 23db7659
Branches
Tags
No related merge requests found
...@@ -480,7 +480,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -480,7 +480,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
public override bool ClutchClosed(Second absTime) public override bool ClutchClosed(Second absTime)
{ {
return DataBus.CycleData.LeftSample.Gear != 0; return (DataBus.DriverBehavior == DrivingBehavior.Braking
? DataBus.CycleData.LeftSample.Gear
: DataBus.CycleData.RightSample.Gear) != 0;
} }
#endregion #endregion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment