code mieux
This commit is contained in:
		| @@ -15,7 +15,7 @@ public class Requin extends SubsystemBase { | ||||
|   /** Creates a new Requin. */ | ||||
|   public Requin() {} | ||||
|   final SparkFlex balaye = new SparkFlex(15, MotorType.kBrushless); | ||||
|   final SparkMax rotatione = new SparkMax(14, MotorType.kBrushless); | ||||
|   final SparkMax rotatione = new SparkMax(17, MotorType.kBrushless); | ||||
|   final DigitalInput limit3 = new DigitalInput(4); | ||||
|   final DigitalInput limit5 = new DigitalInput(5); | ||||
|   public void balaye(double vitesse){ | ||||
| @@ -36,6 +36,9 @@ public class Requin extends SubsystemBase { | ||||
|   public void reset(){ | ||||
|     rotatione.getEncoder().setPosition(0); | ||||
|   } | ||||
|   public double amp(){ | ||||
|     return balaye.getOutputCurrent(); | ||||
|   } | ||||
|   @Override | ||||
|   public void periodic() { | ||||
|     // This method will be called once per scheduler run | ||||
|   | ||||
		Reference in New Issue
	
	Block a user