From 15b5c9cecb57d68b2008547b60fda24660dd886c Mon Sep 17 00:00:00 2001 From: "Keenan D. Buckley" Date: Fri, 10 Jan 2020 21:30:36 -0700 Subject: [PATCH] Robot Work Now Default commands didn't have a required subsystem, causing the program to crash on launch. --- src/main/java/frc4388/robot/RobotContainer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index 5421acf..1aaaddc 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -45,9 +45,9 @@ public class RobotContainer { // drives the robot with a two-axis input from the driver controller m_robotDrive.setDefaultCommand(new RunCommand(() -> m_robotDrive.driveWithInput( getDriverController().getLeftYAxis(), - getDriverController().getRightXAxis()))); + getDriverController().getRightXAxis()), m_robotDrive)); // continually sends updates to the Blinkin LED controller to keep the lights on - m_robotLED.setDefaultCommand(new RunCommand(() -> m_robotLED.updateLED())); + m_robotLED.setDefaultCommand(new RunCommand(() -> m_robotLED.updateLED(), m_robotLED)); } /**