Commit d6a02e6a authored by Lukas Bram's avatar Lukas Bram
Browse files

Add simple sensor upper_speed_limit

parent 71822ab1
Pipeline #380536 passed with stage
in 1 minute and 8 seconds
......@@ -65,6 +65,7 @@ public class Vehicle extends SimulationObject implements Updatable, Destroyable,
physicalValues.addPhysicalValue(new TrueCompass(physicalObject));
physicalValues.addPhysicalValue(new TrueVelocity(physicalObject));
physicalValues.addPhysicalValue(new TruePosition(physicalObject));
physicalValues.addPhysicalValue(new UpperSpeedLimit(physicalObject));
public static final String K_CONFIG = "config";
package de.rwth.montisim.simulation.vehicle.physicalvalues;
import de.rwth.montisim.commons.physicalvalue.PhysicalValueDouble;
import de.rwth.montisim.commons.simulation.DynamicObject;
public class UpperSpeedLimit extends PhysicalValueDouble {
public static final String VALUE_NAME = "upper_speed_limit";
//transient final DynamicObject object;
public UpperSpeedLimit(DynamicObject object) {
* @return [x,y, upper_speed_limit] */
public Object get(){
return 10;
public void set(Object value){
// Cannot change the velocity this way
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