diff --git a/src/main/java/com/spartronics4915/frc/RobotContainer.java b/src/main/java/com/spartronics4915/frc/RobotContainer.java index edfe018..f1c6e76 100644 --- a/src/main/java/com/spartronics4915/frc/RobotContainer.java +++ b/src/main/java/com/spartronics4915/frc/RobotContainer.java @@ -26,7 +26,7 @@ public class RobotContainer public RobotContainer() { // ...and constructed here. - mExampleSubsystem = new ExampleSubsystem(); + mExampleSubsystem = ExampleSubsystem.getInstance(); mAutoCommand = new ExampleCommand(mExampleSubsystem); configureButtonBindings(); diff --git a/src/main/java/com/spartronics4915/frc/subsystems/ExampleSubsystem.java b/src/main/java/com/spartronics4915/frc/subsystems/ExampleSubsystem.java index ec97310..841a529 100644 --- a/src/main/java/com/spartronics4915/frc/subsystems/ExampleSubsystem.java +++ b/src/main/java/com/spartronics4915/frc/subsystems/ExampleSubsystem.java @@ -30,7 +30,7 @@ public ExampleSubsystem() logInitialized(success); } - public static ExampleSubsystem getsInstance() + public static ExampleSubsystem getInstance() { if (sInstance == null) { sInstance = new ExampleSubsystem();