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

Skip to content
Snippets Groups Projects
Commit 30c200ec authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

fix: measured speed mode: allow disengage if vehicle is stopped and does not accelerate

parent 701ab6d4
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