Skip to content

Commit

Permalink
Buttons remapped
Browse files Browse the repository at this point in the history
All buttons for intake control have been remapped as suggested by Andrew.
  • Loading branch information
EuphoniumPlayer committed Mar 6, 2024
1 parent 29b49bd commit bef3f91
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/java/frc/robot/commands/FlyWCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
}
Expand Down

0 comments on commit bef3f91

Please sign in to comment.