Skip to content

Commit

Permalink
Fixed StopElevator instance reference
Browse files Browse the repository at this point in the history
  • Loading branch information
briansemrau committed Feb 10, 2018
1 parent 39bf721 commit 1a4e63b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/org/usfirst/frc/team4737/robot/commands/StopElevator.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
Expand All @@ -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()
Expand All @@ -35,4 +36,5 @@ protected void end() {
// subsystems is scheduled to run
protected void interrupted() {
}

}

0 comments on commit 1a4e63b

Please sign in to comment.