From 613dae1e56f63b76109912b1949da41d6709e0b2 Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Mon, 22 Jan 2024 19:46:49 -0500 Subject: [PATCH] --- src/main/java/frc/robot/subsystem/Grimpeur.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/frc/robot/subsystem/Grimpeur.java b/src/main/java/frc/robot/subsystem/Grimpeur.java index b61e3c5..3f78416 100644 --- a/src/main/java/frc/robot/subsystem/Grimpeur.java +++ b/src/main/java/frc/robot/subsystem/Grimpeur.java @@ -4,6 +4,7 @@ package frc.robot.subsystem; +import com.kauailabs.navx.frc.AHRS; import com.revrobotics.CANSparkMax; import com.revrobotics.CANSparkLowLevel.MotorType; @@ -42,6 +43,10 @@ public void resetencodeurg(){ public void grimpeur(){ grimpeurg.follow(grimpeurd); } +public AHRS gyroscope = new AHRS(); + public double getpitch(){ + return gyroscope.getPitch(); + } @Override public void periodic() { // This method will be called once per scheduler run