BouttonA
This commit is contained in:
parent
2a5d7a1d21
commit
14c9fadf05
@ -10,6 +10,7 @@ import edu.wpi.first.wpilibj2.command.Command;
|
|||||||
import edu.wpi.first.wpilibj2.command.InstantCommand;
|
import edu.wpi.first.wpilibj2.command.InstantCommand;
|
||||||
import edu.wpi.first.wpilibj2.command.RunCommand;
|
import edu.wpi.first.wpilibj2.command.RunCommand;
|
||||||
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
|
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
|
||||||
|
import edu.wpi.first.wpilibj2.command.WaitCommand;
|
||||||
import edu.wpi.first.wpilibj2.command.button.JoystickButton;
|
import edu.wpi.first.wpilibj2.command.button.JoystickButton;
|
||||||
// subsystems
|
// subsystems
|
||||||
import frc.robot.subsystems.BasePilotable;
|
import frc.robot.subsystems.BasePilotable;
|
||||||
@ -65,7 +66,10 @@ 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(new);
|
buttonA.whileHeld(new SequentialCommandGroup(
|
||||||
|
new Activer_poussoir(poussoir).withTimeout(0.5),
|
||||||
|
new Activershaker(pistonshaker)
|
||||||
|
));
|
||||||
JoystickButton rightbumper = new JoystickButton(manette, XboxController.Button.kLeftBumper.value);
|
JoystickButton rightbumper = new JoystickButton(manette, XboxController.Button.kLeftBumper.value);
|
||||||
rightbumper.whileHeld(Activershaker);
|
rightbumper.whileHeld(Activershaker);
|
||||||
JoystickButton buttonY = new JoystickButton(manette, XboxController.Button.kY.value);
|
JoystickButton buttonY = new JoystickButton(manette, XboxController.Button.kY.value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user