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

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

Merge pull request #257 in VECTO/vecto-sim from ~EMQUARIMA/vecto-sim:develop to develop

* commit '30c200ec':
  fix: measured speed mode: allow disengage if vehicle is stopped and does not accelerate
parents 701ab6d4 30c200ec
No related branches found
No related tags found
No related merge requests found
......@@ -124,6 +124,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
DriverBehavior = acceleration < 0
? DriverBehavior = DrivingBehavior.Braking
: DriverBehavior = DrivingBehavior.Driving;
if (DataBus.VehicleStopped && acceleration.IsEqual(0)) {
DriverBehavior = DrivingBehavior.Halted;
}
IResponse response;
var responseCount = 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