This commit is contained in:
Antoine PerreaultE
2025-02-22 14:46:41 -05:00
parent 26d32e3707
commit 7be5f8c2fc
10 changed files with 71 additions and 18 deletions

View File

@ -11,7 +11,7 @@ import com.revrobotics.spark.SparkLowLevel.MotorType;
public class Elevateur extends SubsystemBase {
/** Creates a new Elevateur. */
public Elevateur() {}
final SparkMax monte = new SparkMax(3, MotorType.kBrushless);
final SparkMax monte = new SparkMax(22, MotorType.kBrushless);
final DigitalInput limit2 = new DigitalInput(1);
public double position(){
return monte.getEncoder().getPosition();

View File

@ -17,7 +17,7 @@ public class Pince extends SubsystemBase {
final SparkMax pivoti = new SparkMax(14, MotorType.kBrushless);
final SparkMax algue1 = new SparkMax(16, MotorType.kBrushless);
final SparkMax algue2 = new SparkMax(19, MotorType.kBrushless);
final DigitalInput limit6 = new DigitalInput(2);
final DigitalInput limit6 = new DigitalInput(0);
public void aspirecoral(double vitesse){
coral.set(vitesse);
}