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