Commit b529a978 authored by hengwen's avatar hengwen
Browse files

Increase distance tolerance

parent 7359167b
Pipeline #187960 failed with stage
in 28 seconds
/* (c) https://github.com/MontiCore/monticore */
package server.restful.service;
import de.rwth.monticore.EmbeddedMontiArc.simulators.commons.controller.commons.Vertex;
import de.monticore.lang.montisim.carlang.CarContainer;
import de.rwth.monticore.EmbeddedMontiArc.simulators.commons.controller.commons.Vertex;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import server.restful.model.Dataframe;
......@@ -247,7 +247,7 @@ public class VehicleService {
// instead of next line, we use the duration specified in the scenario file
// maxDuration = Integer.parseInt(Util.getProperties().getProperty("max_simulation_time_ms", "10000"));
if (distToTarget < 1 || (frames != null && frames.size() > 0 && frames.get(frames.size()-1).getTotalTime() > maxDuration)) {
if (distToTarget < 2 || (frames != null && frames.size() > 0 && frames.get(frames.size()-1).getTotalTime() > maxDuration)) {
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment