From 8ae24f30887353b6804393a3a2838bdac0d42474 Mon Sep 17 00:00:00 2001 From: G_Zod01 Date: Fri, 5 Apr 2024 17:51:55 +0200 Subject: [PATCH] he --- ftc_new.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ftc_new.java b/ftc_new.java index da5a038..a45dfd7 100644 --- a/ftc_new.java +++ b/ftc_new.java @@ -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();