complete mode Elina
This commit is contained in:
parent
808c7e5bd5
commit
deeed36095
1 changed files with 9 additions and 8 deletions
|
@ -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 {
|
||||||
//mode Aurelien
|
//mode Aurelien
|
||||||
|
@ -50,14 +56,9 @@ public class ftc2024_autonome extends LinearOpMode {
|
||||||
telemetry.update();
|
telemetry.update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// run until the end of the match (driver presses STOP)
|
// run until the end of the match (driver presses STOP
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue