Reefscape-2025/src/main/java/frc/robot/RobotContainer.java

35 lines
1.1 KiB
Java
Raw Normal View History

2025-01-27 18:21:18 -05:00
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;
2025-01-29 19:01:51 -05:00
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
import frc.robot.command.AlgueExpire;
import frc.robot.command.CoralAlgueInspire;
import frc.robot.command.CoralExpire;
import frc.robot.subsystems.Elevateur;
import frc.robot.subsystems.Pince;
2025-01-27 18:21:18 -05:00
public class RobotContainer {
2025-01-29 19:01:51 -05:00
CommandXboxController manette = new CommandXboxController(0);
Pince pince = new Pince();
Elevateur elevateur = new Elevateur();
2025-01-27 18:21:18 -05:00
public RobotContainer() {
configureBindings();
}
2025-01-29 19:01:51 -05:00
private void configureBindings() {
manette.a().whileTrue(new AlgueExpire(pince));
manette.b().whileTrue(new CoralAlgueInspire(pince));
manette.x().whileTrue(new CoralExpire(pince));
manette.y().whileTrue(new CoralExpire(pince));
}
2025-01-27 18:21:18 -05:00
public Command getAutonomousCommand() {
return Commands.print("No autonomous command configured");
}
}