This commit is contained in:
parent
2bbd608763
commit
613dae1e56
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user