From 7832aaf92e77ea5bbf092bda70ca8f1489569db3 Mon Sep 17 00:00:00 2001 From: jakobaxelsson Date: Mon, 19 Jan 2015 16:58:46 +0100 Subject: [PATCH] Minor updates to wheel ports --- .../main/java/fresta/port/instances/VirtualFrontWheelPPort.java | 2 +- .../main/java/fresta/port/instances/VirtualRearWheelPPort.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simulator/src/main/java/fresta/port/instances/VirtualFrontWheelPPort.java b/simulator/src/main/java/fresta/port/instances/VirtualFrontWheelPPort.java index c7eb4751..2b010fb4 100644 --- a/simulator/src/main/java/fresta/port/instances/VirtualFrontWheelPPort.java +++ b/simulator/src/main/java/fresta/port/instances/VirtualFrontWheelPPort.java @@ -11,7 +11,7 @@ public VirtualFrontWheelPPort(int id) { @Override public Object deliver() { - return (int)CarModel.vehicleSpeed; + return (int)(Math.abs(100 * CarModel.vehicleSpeed)); } @Override diff --git a/simulator/src/main/java/fresta/port/instances/VirtualRearWheelPPort.java b/simulator/src/main/java/fresta/port/instances/VirtualRearWheelPPort.java index a2512a8f..01b2a3b2 100644 --- a/simulator/src/main/java/fresta/port/instances/VirtualRearWheelPPort.java +++ b/simulator/src/main/java/fresta/port/instances/VirtualRearWheelPPort.java @@ -11,7 +11,7 @@ public VirtualRearWheelPPort(int id) { @Override public Object deliver() { - return (int)CarModel.vehicleSpeed; + return (int)(Math.abs(100 * CarModel.vehicleSpeed)); } @Override