This commit is contained in:
samuel desharnais 2024-01-22 20:13:54 -05:00
parent a894467291
commit c637a77410

View File

@ -18,11 +18,9 @@ public class Grimpeur extends SubsystemBase {
public Grimpeur() {}
final CANSparkMax grimpeurd = new CANSparkMax(Constants.grimpeurd,MotorType.kBrushless);
final CANSparkMax grimpeurg = new CANSparkMax(Constants.grimpeurg,MotorType.kBrushless);
// limit switch
final DigitalInput limitdroite = new DigitalInput(Constants.limithaut);
final DigitalInput limitgauche = new DigitalInput(Constants.limitbas);
//fonction
public void droit(double vitesse){
grimpeurd.set(vitesse);
@ -49,7 +47,6 @@ public AHRS gyroscope = new AHRS();
public double getpitch(){
return gyroscope.getPitch();
}
@Override
public void periodic() {
// This method will be called once per scheduler run