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

31 lines
1.0 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:51:59 -05:00
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
import frc.robot.command.GrimperHaut;
import frc.robot.command.GrimpeurBas;
import frc.robot.subsystems.Grimpeur;
2025-01-27 18:21:18 -05:00
public class RobotContainer {
2025-01-29 19:51:59 -05:00
CommandXboxController manette1 = new CommandXboxController(0);
CommandXboxController manette2 = new CommandXboxController(0);
Grimpeur grimpeur = new Grimpeur();
2025-01-27 18:21:18 -05:00
public RobotContainer() {
configureBindings();
}
2025-01-29 19:51:59 -05:00
private void configureBindings() {
manette1.leftBumper().whileTrue(new GrimperHaut(grimpeur));
manette1.rightBumper().whileTrue(new GrimpeurBas(grimpeur));
}
2025-01-27 18:21:18 -05:00
public Command getAutonomousCommand() {
return Commands.print("No autonomous command configured");
}
}