From 732a849a5a136068b548f3ba005c1e7b8450cd6f Mon Sep 17 00:00:00 2001 From: "Keenan D. Buckley" Date: Sun, 5 Jan 2020 21:06:38 -0700 Subject: [PATCH] Add Documentation to Commands in RobotContainer.java --- src/main/java/frc4388/robot/RobotContainer.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index 4406d88..fe2e6c2 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -43,6 +43,8 @@ public class RobotContainer { /* Default Commands */ m_robotDrive.setDefaultCommand(new DriveWithJoystick(m_robotDrive, getDriverController())); + // drives the robot with a two-axis input from the driver controller + // continually sends updates to the Blinkin LED controller to keep the lights on m_robotLED.setDefaultCommand(new UpdateLED(m_robotLED)); } @@ -53,9 +55,13 @@ public class RobotContainer { * {@link edu.wpi.first.wpilibj2.command.button.JoystickButton}. */ private void configureButtonBindings() { + /* Driver Buttons */ + //Test command to spin the robot while pressing A on the driver controller new JoystickButton(getDriverJoystick(), XboxController.A_BUTTON) .whenPressed(() -> m_robotDrive.driveWithInput(0, 1)) .whenReleased(new DriveWithJoystick(m_robotDrive, getDriverController())); + + /* Operator Buttons */ } /**