projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I wrote code for incrreasing and decreasing shooting speed and added necessary consta...
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
shooter
/
RunIndexWheelContinuous.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java
b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java
index b4eed57abe0862ae574c3ad83a3279998f183745..1bf1c6f0c4941cba314eeff63030e066f345e557 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.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;
@@
-17,7
+18,7
@@
import edu.wpi.first.wpilibj.command.Command;
* @author Shaina
*/
public class RunIndexWheelContinuous extends Command {
* @author Shaina
*/
public class RunIndexWheelContinuous extends Command {
- private
double motorVal
;
+ private
Shooter shooter = Robot.getShooter()
;
/**
* See JavaDoc comment in class for details
/**
* See JavaDoc comment in class for details
@@
-25,14
+26,14
@@
public class RunIndexWheelContinuous extends Command {
* @param motorVal
* value range from -1 to 1
*/
* @param motorVal
* value range from -1 to 1
*/
- public RunIndexWheelContinuous(
double motorVal
) {
- this.motorVal = motorVal;
+ public RunIndexWheelContinuous() {
+
}
// Called just before this Command runs the first time
@Override
protected void initialize() {
}
// Called just before this Command runs the first time
@Override
protected void initialize() {
-
Robot.getShooter().setIndexWheelMotorVal(motorVal
);
+
shooter.setIndexWheelMotorVal(shooter.CURRENT_SHOOTING_SPEED
);
}
// Called repeatedly when this Command is scheduled to run
}
// Called repeatedly when this Command is scheduled to run