Merge branch 'main' of https://demerso.net/pls5618/2023/betabots
This commit is contained in:
commit
3a590a2926
@ -11,17 +11,22 @@ import edu.wpi.first.wpilibj.XboxController;
|
|||||||
import edu.wpi.first.wpilibj.XboxController.Button;
|
import edu.wpi.first.wpilibj.XboxController.Button;
|
||||||
import edu.wpi.first.wpilibj2.command.Command;
|
import edu.wpi.first.wpilibj2.command.Command;
|
||||||
import edu.wpi.first.wpilibj2.command.RunCommand;
|
import edu.wpi.first.wpilibj2.command.RunCommand;
|
||||||
|
import edu.wpi.first.wpilibj2.command.button.JoystickButton;
|
||||||
|
// subsystems
|
||||||
|
import frc.robot.subsystems.BasePilotable;
|
||||||
|
import frc.robot.subsystems.Poussoir;
|
||||||
|
import frc.robot.subsystems.Pistonshaker;
|
||||||
|
// commands
|
||||||
|
import frc.robot.commands.Activer_poussoir;
|
||||||
import frc.robot.commands.ActiverBlockeur;
|
import frc.robot.commands.ActiverBlockeur;
|
||||||
import frc.robot.commands.Activer_poussoir;
|
import frc.robot.commands.Activer_poussoir;
|
||||||
import frc.robot.commands.Activershaker;
|
import frc.robot.commands.Activershaker;
|
||||||
import frc.robot.commands.DesactiverBlockeur;
|
import frc.robot.commands.DesactiverBlockeur;
|
||||||
import frc.robot.subsystems.BasePilotable;
|
|
||||||
import frc.robot.subsystems.Pistonshaker;
|
|
||||||
import frc.robot.subsystems.Poussoir;
|
|
||||||
import edu.wpi.first.wpilibj2.command.button.JoystickButton;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import frc.robot.commands.BoutonA;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is where the bulk of the robot should be declared. Since Command-based is a
|
* This class is where the bulk of the robot should be declared. Since Command-based is a
|
||||||
* "declarative" paradigm, very little robot logic should actually be handled in the {@link Robot}
|
* "declarative" paradigm, very little robot logic should actually be handled in the {@link Robot}
|
||||||
@ -60,7 +65,7 @@ public class RobotContainer {
|
|||||||
*/
|
*/
|
||||||
private void configureButtonBindings() {
|
private void configureButtonBindings() {
|
||||||
JoystickButton buttonA = new JoystickButton(manette, XboxController.Button.kA.value);
|
JoystickButton buttonA = new JoystickButton(manette, XboxController.Button.kA.value);
|
||||||
buttonA.whileHeld(Poussoir);
|
buttonA.whileHeld(Activer_poussoir);
|
||||||
JoystickButton rightbumper = new JoystickButton(manette, XboxController.Button.kLeftBumper.value);
|
JoystickButton rightbumper = new JoystickButton(manette, XboxController.Button.kLeftBumper.value);
|
||||||
rightbumper.whileHeld(Pistonshaker);
|
rightbumper.whileHeld(Pistonshaker);
|
||||||
JoystickButton buttonY = new JoystickButton(manette, XboxController.Button.kY.value);
|
JoystickButton buttonY = new JoystickButton(manette, XboxController.Button.kY.value);
|
||||||
|
@ -5,10 +5,13 @@
|
|||||||
package frc.robot.commands;
|
package frc.robot.commands;
|
||||||
|
|
||||||
import edu.wpi.first.wpilibj2.command.CommandBase;
|
import edu.wpi.first.wpilibj2.command.CommandBase;
|
||||||
|
import frc.robot.subsystems.Poussoir;
|
||||||
|
import frc.robot.subsystems.Pistonshaker;
|
||||||
|
|
||||||
public class BoutonA extends CommandBase {
|
public class BoutonA extends CommandBase {
|
||||||
/** Creates a new boutonY. */
|
/** Creates a new boutonA. */
|
||||||
public BoutonA() {
|
public BoutonA() {
|
||||||
|
|
||||||
// Use addRequirements() here to declare subsystem dependencies.
|
// Use addRequirements() here to declare subsystem dependencies.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user