From f6adacdba538145d974ceec9d9277cc25958a95f Mon Sep 17 00:00:00 2001 From: GZod01 Date: Wed, 20 Mar 2024 15:21:28 +0100 Subject: [PATCH] hello --- FTC2024WeRobotControl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/FTC2024WeRobotControl.java b/FTC2024WeRobotControl.java index cf5e932..b0afc13 100644 --- a/FTC2024WeRobotControl.java +++ b/FTC2024WeRobotControl.java @@ -38,6 +38,8 @@ public class FTC2024WeRobotControl { * the width size of the tiles on the ground in metres */ private final double ground_tiles_width = 61.0e-2; // metres + // + private final double defaultspeed = 0.6; private ElapsedTime timer; @@ -102,7 +104,7 @@ public class FTC2024WeRobotControl { } public void forward(double n_tiles){ - this.forward(n_tiles,1); + this.forward(n_tiles,this.defaultspeed); } /* @@ -119,7 +121,7 @@ public class FTC2024WeRobotControl { } public void backward(double n_tiles){ - this.backward(n_tiles,1); + this.backward(n_tiles,this.defaultspeed); } /* @@ -167,7 +169,7 @@ public class FTC2024WeRobotControl { Parent.rm.setPower(0); } public void rotate(double angle){ - this.rotate(angle,1.0); + this.rotate(angle,this.defaultspeed); } public void test_forward_10_and_rotate_20deg(){