From 1a4e63b1e8c2c4a75959ca26751c70b057c3a85c Mon Sep 17 00:00:00 2001 From: Brian Semrau Date: Sat, 10 Feb 2018 16:18:44 -0500 Subject: [PATCH] Fixed StopElevator instance reference --- .../usfirst/frc/team4737/robot/commands/StopElevator.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/org/usfirst/frc/team4737/robot/commands/StopElevator.java b/src/org/usfirst/frc/team4737/robot/commands/StopElevator.java index 65d65a9..d2a4ea5 100644 --- a/src/org/usfirst/frc/team4737/robot/commands/StopElevator.java +++ b/src/org/usfirst/frc/team4737/robot/commands/StopElevator.java @@ -1,5 +1,6 @@ package org.usfirst.frc.team4737.robot.commands; +import org.usfirst.frc.team4737.robot.Robot; import org.usfirst.frc.team4737.robot.subsystems.Elevator; import edu.wpi.first.wpilibj.command.Command; @@ -10,7 +11,7 @@ public class StopElevator extends Command { public StopElevator() { - requires(Elevator.getInstance()); + requires(Robot.ELEVATOR); } // Called just before this Command runs the first time @@ -19,7 +20,7 @@ protected void initialize() { // Called repeatedly when this Command is scheduled to run protected void execute() { - Elevator.getInstance().setSpeed(0); + Robot.ELEVATOR.setSpeed(0); } // Make this return true when this Command no longer needs to run execute() @@ -35,4 +36,5 @@ protected void end() { // subsystems is scheduled to run protected void interrupted() { } + }