From de61511e008c3a5268136973d82f08435b5b7658 Mon Sep 17 00:00:00 2001 From: remo Date: Mon, 27 May 2024 16:47:13 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Balint=5Fk=C3=A9sz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/hu/bme/mit/train/controller/TrainControllerImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/train-controller/src/main/java/hu/bme/mit/train/controller/TrainControllerImpl.java b/train-controller/src/main/java/hu/bme/mit/train/controller/TrainControllerImpl.java index 06649d278..feb8e000c 100644 --- a/train-controller/src/main/java/hu/bme/mit/train/controller/TrainControllerImpl.java +++ b/train-controller/src/main/java/hu/bme/mit/train/controller/TrainControllerImpl.java @@ -43,6 +43,7 @@ private void enforceSpeedLimit() { @Override public void setJoystickPosition(int joystickPosition) { + referenceSpeed = joystickPosition; this.step = joystickPosition; } From 00f41332b11c6383ae451ab694020d3c7ee47875 Mon Sep 17 00:00:00 2001 From: remo Date: Mon, 27 May 2024 17:29:49 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Balint=5Fk=C3=A9sz2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/hu/bme/mit/train/controller/TrainControllerImpl.java | 1 - 1 file changed, 1 deletion(-) diff --git a/train-controller/src/main/java/hu/bme/mit/train/controller/TrainControllerImpl.java b/train-controller/src/main/java/hu/bme/mit/train/controller/TrainControllerImpl.java index feb8e000c..06649d278 100644 --- a/train-controller/src/main/java/hu/bme/mit/train/controller/TrainControllerImpl.java +++ b/train-controller/src/main/java/hu/bme/mit/train/controller/TrainControllerImpl.java @@ -43,7 +43,6 @@ private void enforceSpeedLimit() { @Override public void setJoystickPosition(int joystickPosition) { - referenceSpeed = joystickPosition; this.step = joystickPosition; }