projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add corrections
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
shooter
/
ReverseIndexWheel.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/shooter/ReverseIndexWheel.java
b/src/org/usfirst/frc/team3501/robot/commands/shooter/ReverseIndexWheel.java
index 544a81533158ec247845a4fb5c81869d1938fa38..853dff694da97cfdbd487bb97b913125015a79f2 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/commands/shooter/ReverseIndexWheel.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/shooter/ReverseIndexWheel.java
@@
-1,6
+1,7
@@
package org.usfirst.frc.team3501.robot.commands.shooter;
import org.usfirst.frc.team3501.robot.Robot;
package org.usfirst.frc.team3501.robot.commands.shooter;
import org.usfirst.frc.team3501.robot.Robot;
+import org.usfirst.frc.team3501.robot.subsystems.Shooter;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Command;
@@
-14,6
+15,7
@@
import edu.wpi.first.wpilibj.command.Command;
public class ReverseIndexWheel extends Command {
private double time;
private double motorVal;
public class ReverseIndexWheel extends Command {
private double time;
private double motorVal;
+ private Shooter shooter = Robot.getShooter();
/**
* See JavaDoc comment in class for details
/**
* See JavaDoc comment in class for details
@@
-37,7
+39,7
@@
public class ReverseIndexWheel extends Command {
@Override
protected void execute() {
@Override
protected void execute() {
-
Robot.getShooter().setIndexWheelMotorVal(-motorVal
);
+
shooter.runIndexWheelReverse(
);
}
}