diff --git a/bin/main/frc/robot/subsystems/BasePilotable.class b/bin/main/frc/robot/subsystems/BasePilotable.class index 4fa115f..20fa95d 100644 Binary files a/bin/main/frc/robot/subsystems/BasePilotable.class and b/bin/main/frc/robot/subsystems/BasePilotable.class differ diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 5fe595c..9dc4fb5 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -4,11 +4,16 @@ package frc.robot; +import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.XboxController; import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.Commands; import edu.wpi.first.wpilibj2.command.RunCommand; +<<<<<<< HEAD import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; +======= +import edu.wpi.first.wpilibj2.command.button.JoystickButton; +>>>>>>> ded3f6018fe8a2c8b719139889c406330ff44003 //subsystems import frc.robot.subsystems.BasePilotable; import frc.robot.subsystems.Gratte; @@ -60,7 +65,11 @@ public RobotContainer() { } - private void configureBindings() {} + private void configureBindings() { + + JoystickButton buttonA = new JoystickButton(manette1, XboxController.Button.kA.value); + buttonA.whenPressed() + } public Command getAutonomousCommand() { return Commands.print("No autonomous command configured"); diff --git a/src/main/java/frc/robot/subsystems/BasePilotable.java b/src/main/java/frc/robot/subsystems/BasePilotable.java index 2156046..4ed9d06 100644 --- a/src/main/java/frc/robot/subsystems/BasePilotable.java +++ b/src/main/java/frc/robot/subsystems/BasePilotable.java @@ -32,7 +32,7 @@ public class BasePilotable extends SubsystemBase { return gyroscope.getPitch(); } - public void drive(double xSpeed, double zRotation, double d, BasePilotable basePilotable){ + public void drive(double xSpeed, double zRotation, double d){ drive.arcadeDrive(xSpeed, zRotation); } public double distance(){