Skip to content

Commit

Permalink
Pull request edits
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeledWarrior14 authored Feb 21, 2024
1 parent 92c6755 commit c1164c7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
public class RobotContainer {
// The robot's subsystems and commands are defined here
private final DriveSubsystem m_robotDrive = new DriveSubsystem();

private final ShooterSubsystem m_shooterSubsystem = new ShooterSubsystem();

private final XboxController m_driverController = new XboxController(IOConstants.kDriverControllerPort);

/**
Expand Down Expand Up @@ -97,6 +98,14 @@ private void configureBindings() {
// new JoystickButton(m_driverController, Button.kA.value).whileTrue(
// AutoBuilder.pathfindToPose(new Pose2d(2.8, 5.5, new Rotation2d()), new PathConstraints(
// DriveConstants.kMaxSpeedMetersPerSecond - 1, 5, DriveConstants.kMaxAngularSpeedRadiansPerSecond - 1, 5)));

// TODO: Move shoot commands to operator controller
new JoystickButton(m_driverController, Button.kX.value)
.onTrue(new InstantCommand(() -> m_shooterSubsystem.spin(0.75), m_shooterSubsystem))
.onFalse(new InstantCommand(() -> m_shooterSubsystem.spin(0), m_shooterSubsystem));
new JoystickButton(m_driverController, Button.kY.value)
.onTrue(new InstantCommand(() -> m_shooterSubsystem.spin(-0.75), m_shooterSubsystem))
.onFalse(new InstantCommand(() -> m_shooterSubsystem.spin(0), m_shooterSubsystem));
}

/**
Expand All @@ -121,4 +130,4 @@ public Command getAutonomousCommand() {

// return pathPlannerAuto;
}
}
}

0 comments on commit c1164c7

Please sign in to comment.