From c92273e2c79c371ee84cbf8a82e9fe3ed513c626 Mon Sep 17 00:00:00 2001 From: bferi2001 Date: Sun, 2 Apr 2023 20:21:56 +0200 Subject: [PATCH 1/2] F3 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index e26e034fc..dfe86af64 100644 --- a/README.md +++ b/README.md @@ -62,3 +62,9 @@ The figure below illustrates this behavior using an example. 1. As the joystick remains at a positive value, the reference speed is incremented again. 1. However, it reaches the speed limit so in the next step it is not incremented even though the joystick still has a positive value. 1. Later, the joystick is set to a negative position for one time unit, making the reference speed to decrease as well. + +# Wikipédia +[Wikipédia](https://wikipedia.hu) +* első +* második +* harmadik \ No newline at end of file From e7c5402414057cb75661ebfe179104b83d58c97c Mon Sep 17 00:00:00 2001 From: bferi2001 Date: Sun, 2 Apr 2023 21:04:33 +0200 Subject: [PATCH 2/2] f4_9 --- .../hu/bme/mit/train/controller/TrainControllerImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 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 06649d278..55cfee633 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,11 @@ private void enforceSpeedLimit() { @Override public void setJoystickPosition(int joystickPosition) { - this.step = joystickPosition; + this.step = joystickPosition; + } + + public void setReferenceSpeed(int referenceSpeed) { + this.referenceSpeed = referenceSpeed; } }