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 b2348798 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

same distance tolerance for debug and release in vehicle

parent 29d63f93
Branches
Tags
No related merge requests found
...@@ -173,12 +173,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -173,12 +173,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Log.Warn("Distance field is not set!"); Log.Warn("Distance field is not set!");
} else { } else {
var distance = (SI)container[ModalResultField.dist]; var distance = (SI)container[ModalResultField.dist];
#if DEBUG if (!distance.IsEqual(CurrentState.Distance)) {
var tolerance = 1e-12.SI<Meter>();
#else
var tolerance = 1e-6.SI<Meter>();
#endif
if (!distance.IsEqual(CurrentState.Distance, tolerance)) {
Log.Warn("Vehicle Distance diverges from Cycle by {0} [m]. Distance: {1}", Log.Warn("Vehicle Distance diverges from Cycle by {0} [m]. Distance: {1}",
(distance - CurrentState.Distance).Value(), distance); (distance - CurrentState.Distance).Value(), distance);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment