This commit is contained in:
samuel desharnais 2024-01-22 19:46:49 -05:00
parent 2bbd608763
commit 613dae1e56

View File

@ -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