he
This commit is contained in:
parent
d1f78c1f72
commit
8ae24f3088
1 changed files with 5 additions and 1 deletions
|
@ -138,6 +138,7 @@ public class WEROBOT_FTC2024_New_carlike extends LinearOpMode {
|
|||
box.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
|
||||
|
||||
avion = hardwareMap.get(Servo.class, "avion");
|
||||
avion.setPosition(0);
|
||||
// box.setPositionPIDFCoefficients(5.0);
|
||||
|
||||
// rotation positions: 20° pos initiale par rapport au sol
|
||||
|
@ -183,7 +184,10 @@ public class WEROBOT_FTC2024_New_carlike extends LinearOpMode {
|
|||
telemetry.addData("Status", "Running");
|
||||
|
||||
|
||||
|
||||
if (gamepad1.right_bumper && gamepad1.left_bumper && gamepad1.a){
|
||||
avion.setPosition(1);
|
||||
continue;
|
||||
}
|
||||
// Choix mode conduite / actif en manuel et auto
|
||||
if (gamepad1.a && !already_a) {
|
||||
nextMode();
|
||||
|
|
Loading…
Reference in a new issue