projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement some methods of RunIndexWheelContinuous class
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
shooter
/
RunFlyWheelContinuous.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java
b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java
index 65a69f232dd8d6fd5f7699b261a093235434edea..a5e8501f1a5b50b137221d1b8fd4d44827e52ee2 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java
@@
-1,5
+1,7
@@
package org.usfirst.frc.team3501.robot.commands.shooter;
package org.usfirst.frc.team3501.robot.commands.shooter;
+import org.usfirst.frc.team3501.robot.Robot;
+
import edu.wpi.first.wpilibj.command.Command;
/**
import edu.wpi.first.wpilibj.command.Command;
/**
@@
-27,6
+29,7
@@
public class RunFlyWheelContinuous extends Command {
// 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().setFlyWheelMotorVal(motorVal);
}
// Called repeatedly when this Command is scheduled to run
}
// Called repeatedly when this Command is scheduled to run
@@
-37,6
+40,7
@@
public class RunFlyWheelContinuous extends Command {
// Called once after isFinished returns true
@Override
protected void end() {
// Called once after isFinished returns true
@Override
protected void end() {
+ Robot.getShooter().stopFlyWheel();
}
// Called when another command which requires one or more of the same
}
// Called when another command which requires one or more of the same
@@
-49,6
+53,7
@@
public class RunFlyWheelContinuous extends Command {
@Override
protected boolean isFinished() {
return false;
@Override
protected boolean isFinished() {
return false;
+
}
}
}
}