From bef3f9192429c5bd5f1a24914fb8cf1f1d68ba9b Mon Sep 17 00:00:00 2001 From: EuphoniumPlayer Date: Tue, 5 Mar 2024 19:14:04 -0600 Subject: [PATCH] Buttons remapped All buttons for intake control have been remapped as suggested by Andrew. --- src/main/java/frc/robot/commands/FlyWCommand.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/frc/robot/commands/FlyWCommand.java b/src/main/java/frc/robot/commands/FlyWCommand.java index 7dde141..b71b62c 100644 --- a/src/main/java/frc/robot/commands/FlyWCommand.java +++ b/src/main/java/frc/robot/commands/FlyWCommand.java @@ -12,7 +12,7 @@ public class FlyWCommand extends Command { private final FlyWheel m_FlyWSubsystem; // controller // TODO: Change this to the correct controller - private final Joystick ConveyorJoystick = new Joystick(1); + private final Joystick Joystick = new Joystick(1); public FlyWCommand(FlyWheel subsystem) { m_FlyWSubsystem = subsystem; @@ -24,13 +24,11 @@ public void initialize() {} @Override public void execute() { - // TODO: Change this to the correct button - if (ConveyorJoystick.getRawButton(3) == true) { + if (Joystick.getPOV() != -1) { m_FlyWSubsystem.enableflywheel(); - // TODO: Change this to the correct button - } else if (ConveyorJoystick.getRawButton(4) == true) { + } else if (Joystick.getRawButton(7) == true) { m_FlyWSubsystem.reverseflywheel(); - System.out.println("Conveyor Moving in Reverse"); + System.out.println("Flywheels Moving in Reverse"); } else { m_FlyWSubsystem.disableflywheel(); }