projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shooter code review changes
[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..2ed11b6a398e97d7cdf4e28e03479a9bb1a0e818 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;
@@
-12,8
+13,8
@@
import edu.wpi.first.wpilibj.command.Command;
*/
public class ReverseIndexWheel extends Command {
*/
public class ReverseIndexWheel extends Command {
+ private Shooter shooter = Robot.getShooter();
private double time;
private double time;
- private double motorVal;
/**
* See JavaDoc comment in class for details
/**
* See JavaDoc comment in class for details
@@
-24,20
+25,18
@@
public class ReverseIndexWheel extends Command {
* in seconds, amount of time to run index wheel motor
*/
* in seconds, amount of time to run index wheel motor
*/
- public ReverseIndexWheel(double time
, double motorVal
) {
+ public ReverseIndexWheel(double time) {
requires(Robot.getDriveTrain());
this.time = time;
requires(Robot.getDriveTrain());
this.time = time;
- this.motorVal = motorVal;
}
@Override
protected void initialize() {
}
@Override
protected void initialize() {
-
}
@Override
protected void execute() {
}
@Override
protected void execute() {
-
Robot.getShooter().setIndexWheelMotorVal(-motorVal
);
+
shooter.reverseIndexWheel(
);
}
}
@@
-48,7
+47,7
@@
public class ReverseIndexWheel extends Command {
@Override
protected void end() {
@Override
protected void end() {
-
Robot.getShooter()
.stopIndexWheel();
+
shooter
.stopIndexWheel();
}
}