Merge branch 'master' of github.com:GZod01/ftc2024-robotcode

PFFF
This commit is contained in:
GZod01 2024-01-28 17:04:02 +01:00
commit 7834ab0ecb

View file

@ -36,10 +36,16 @@ public class ftc2024_autonome extends LinearOpMode {
//mode Elina //mode Elina
while (opModeIsActive() && (runtime.seconds() <= 3.0)) { while (opModeIsActive() && (runtime.seconds() <= 3.0)) {
leftMotor.setPower(1); leftMotor.setPower(1);
rightMotor.setPower(1); rightMotor.setPower(-1);
telemetry.addData("Leg 1", runtime.seconds()); telemetry.addData("Leg 1", runtime.seconds());
telemetry.update(); telemetry.update();
} }
while (opModeIsActive() && (runtime.seconds() <= 10.0)) {
leftMotor.setPower(1);
rightMotor.setPower(1);
telemetry.addData("Leg 2", runtime.seconds());
telemetry.update();
}
} }
else { else {
double[][] operations = { double[][] operations = {
@ -61,14 +67,9 @@ public class ftc2024_autonome extends LinearOpMode {
} }
} }
} }
// run until the end of the match (driver presses STOP) // run until the end of the match (driver presses STOP
} }
} }