From deeed36095202bf8a4c4e989f0529ebd4a4b51d2 Mon Sep 17 00:00:00 2001 From: Zelina974 Date: Sun, 28 Jan 2024 16:55:48 +0100 Subject: [PATCH] complete mode Elina --- ftc2024-autonome.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ftc2024-autonome.java b/ftc2024-autonome.java index 47c1ee5..d4a09c5 100644 --- a/ftc2024-autonome.java +++ b/ftc2024-autonome.java @@ -36,10 +36,16 @@ public class ftc2024_autonome extends LinearOpMode { //mode Elina while (opModeIsActive() && (runtime.seconds() <= 3.0)) { leftMotor.setPower(1); - rightMotor.setPower(1); + rightMotor.setPower(-1); telemetry.addData("Leg 1", runtime.seconds()); telemetry.update(); } + while (opModeIsActive() && (runtime.seconds() <= 10.0)) { + leftMotor.setPower(1); + rightMotor.setPower(1); + telemetry.addData("Leg 2", runtime.seconds()); + telemetry.update(); + } } else { //mode Aurelien @@ -50,14 +56,9 @@ public class ftc2024_autonome extends LinearOpMode { telemetry.update(); } } - // run until the end of the match (driver presses STOP) - - - - - - + // run until the end of the match (driver presses STOP } } +