From 91fccfe3b5c406de9ece9dcd2dcead03bc34f7d9 Mon Sep 17 00:00:00 2001 From: Zelina974 Date: Sun, 11 Feb 2024 15:53:31 +0100 Subject: [PATCH] updates --- ftc2024-autonome.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ftc2024-autonome.java b/ftc2024-autonome.java index b7acb90..b810fda 100644 --- a/ftc2024-autonome.java +++ b/ftc2024-autonome.java @@ -62,6 +62,9 @@ public class ftc2024_autonome extends LinearOpMode { double wheel_perimeter = wheel_rayon*2*Math.PI; double speed = (tour_par_minute/60)*wheel_perimeter;//dist per second boolean mode = true; + double Yaw = robotOrientation.getYaw(AngleUnit.DEGREES); + double Pitch = robotOrientation.getPitch(AngleUnit.DEGREES); + double Roll = robotOrientation.getRoll(AngleUnit.DEGREES); // Wait for the game to start (driver presses PLAY) waitForStart(); @@ -120,9 +123,7 @@ public class ftc2024_autonome extends LinearOpMode { // Now use these simple methods to extract each angle // (Java type double) from the object you just created: - double Yaw = robotOrientation.getYaw(AngleUnit.DEGREES); - double Pitch = robotOrientation.getPitch(AngleUnit.DEGREES); - double Roll = robotOrientation.getRoll(AngleUnit.DEGREES); + telemetry.addData("yaw",Yaw); telemetry.update();