Commit dd6973b7 authored by Jannik Matthias Decker's avatar Jannik Matthias Decker
Browse files

Update Vehicle.java

parent 1c9e8358
Pipeline #187955 passed with stage
in 2 minutes and 59 seconds
...@@ -417,7 +417,7 @@ public class Vehicle{ ...@@ -417,7 +417,7 @@ public class Vehicle{
public boolean isAtLocation(RealVector location2D){ public boolean isAtLocation(RealVector location2D){
RealVector vehiclePos2D = new ArrayRealVector(new double[]{physicalVehicle.getPosition().getEntry(0),physicalVehicle.getPosition().getEntry(1)}); RealVector vehiclePos2D = new ArrayRealVector(new double[]{physicalVehicle.getPosition().getEntry(0),physicalVehicle.getPosition().getEntry(1)});
return location2D.getDistance(vehiclePos2D) < 1.5; return location2D.getDistance(vehiclePos2D) < 1.8;
} }
/** /**
* @return true if it's an EV * @return true if it's an EV
......
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