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

driver: set brake power in case the search found a negative braking power, formatting

parent 4ba02026
No related branches found
No related tags found
No related merge requests found
......@@ -430,8 +430,9 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
operatingPoint.SimulationInterval,
operatingPoint.Acceleration, DataBus.BrakePower);
if (DataBus.BrakePower < 0) {
var overload = new ResponseOverload { Source = this, BrakePower = DataBus.BrakePower, Acceleration = operatingPoint.Acceleration};
DataBus.BrakePower = 0.SI<Watt>();
return new ResponseOverload { Source = this };
return overload;
}
DriverAcceleration = operatingPoint.Acceleration;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment