projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add motorVal parameter to DriveDistance and TurnForAngle commands
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
driving
/
TurnForAngle.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java
b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java
index becaa3a2b759b4289abdf36b675b2f621c1f9127..993adc8c5b46922c1cb6ad5d0fc1565af8cec7ca 100755
(executable)
--- a/
src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java
@@
-10,13
+10,13
@@
import edu.wpi.first.wpilibj.command.Command;
* either left or right
*
* parameters:
* either left or right
*
* parameters:
- * angle the robot will turn - in degrees
- * direction the robot will turn - either right or left
- *
+ * angle
:
the robot will turn - in degrees
+ * direction
:
the robot will turn - either right or left
+ *
motorVal: the motor input to set the motors to
*/
public class TurnForAngle extends Command {
*/
public class TurnForAngle extends Command {
- public TurnForAngle(double angle, Direction direction) {
+ public TurnForAngle(double angle, Direction direction
, double motorVal
) {
requires(Robot.getDriveTrain());
}
requires(Robot.getDriveTrain());
}