This commit is contained in:
Antoine PerreaultE 2025-02-03 17:51:57 -05:00
parent 210d219793
commit 6f75b9cc42
2 changed files with 6 additions and 6 deletions

View File

@ -66,6 +66,6 @@ public class RobotContainer {
} }
public Command getAutonomousCommand() { public Command getAutonomousCommand() {
return Commands.print("No autonomous command configured"); return autoChooser.getSelected();
} }
} }

View File

@ -13,11 +13,11 @@ import edu.wpi.first.wpilibj2.command.SubsystemBase;
public class Pince extends SubsystemBase { public class Pince extends SubsystemBase {
/** Creates a new Pince. */ /** Creates a new Pince. */
public Pince() {} public Pince() {}
final SparkMax coral = new SparkMax(0, MotorType.kBrushless); final SparkMax coral = new SparkMax(1, MotorType.kBrushless);
final SparkMax pivoti = new SparkMax(0, MotorType.kBrushless); final SparkMax pivoti = new SparkMax(2, MotorType.kBrushless);
final SparkMax algue1 = new SparkMax(0, MotorType.kBrushless); final SparkMax algue1 = new SparkMax(4, MotorType.kBrushless);
final SparkMax algue2 = new SparkMax(0, MotorType.kBrushless); final SparkMax algue2 = new SparkMax(5, MotorType.kBrushless);
final DigitalInput limit6 = new DigitalInput(0); final DigitalInput limit6 = new DigitalInput(2);
public void aspirecoral(double vitesse){ public void aspirecoral(double vitesse){
coral.set(vitesse); coral.set(vitesse);
} }