This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user