This commit is contained in:
		| @@ -4,6 +4,7 @@ | |||||||
|  |  | ||||||
| package frc.robot.subsystem; | package frc.robot.subsystem; | ||||||
|  |  | ||||||
|  | import com.kauailabs.navx.frc.AHRS; | ||||||
| import com.revrobotics.CANSparkMax; | import com.revrobotics.CANSparkMax; | ||||||
| import com.revrobotics.CANSparkLowLevel.MotorType; | import com.revrobotics.CANSparkLowLevel.MotorType; | ||||||
|  |  | ||||||
| @@ -42,6 +43,10 @@ public void resetencodeurg(){ | |||||||
| public void grimpeur(){ | public void grimpeur(){ | ||||||
|   grimpeurg.follow(grimpeurd); |   grimpeurg.follow(grimpeurd); | ||||||
| } | } | ||||||
|  | public AHRS gyroscope = new AHRS(); | ||||||
|  |   public double getpitch(){ | ||||||
|  |     return gyroscope.getPitch(); | ||||||
|  |   } | ||||||
|   @Override |   @Override | ||||||
|   public void periodic() { |   public void periodic() { | ||||||
|     // This method will be called once per scheduler run |     // This method will be called once per scheduler run | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user