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

extend message in case of negative brake power

parent d6a8acc0
Branches
Tags
No related merge requests found
...@@ -72,7 +72,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -72,7 +72,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
} }
if (!dryRun && BrakePower < 0) { if (!dryRun && BrakePower < 0) {
throw new VectoSimulationException("Negative Braking Power is not allowed!"); throw new VectoSimulationException("Negative Braking Power is not allowed! P_br: {0}", BrakePower);
} }
CurrentState.SetState(outTorque + brakeTorque, outAngularVelocity, outTorque, outAngularVelocity); CurrentState.SetState(outTorque + brakeTorque, outAngularVelocity, outTorque, outAngularVelocity);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment