Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. 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
No related branches found
No related tags found
No related merge requests found
......@@ -173,12 +173,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
Log.Warn("Distance field is not set!");
} else {
var distance = (SI)container[ModalResultField.dist];
#if DEBUG
var tolerance = 1e-12.SI<Meter>();
#else
var tolerance = 1e-6.SI<Meter>();
#endif
if (!distance.IsEqual(CurrentState.Distance, tolerance)) {
if (!distance.IsEqual(CurrentState.Distance)) {
Log.Warn("Vehicle Distance diverges from Cycle by {0} [m]. Distance: {1}",
(distance - CurrentState.Distance).Value(), distance);
}
......
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