projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add command group for ToggleWinch
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
subsystems
/
DriveTrain.java
diff --git
a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java
b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java
index f30d4c2d2d41c8e62fd4b01e78cd054e75e8b89a..7463b8685faa504319777e830231c066b8088154 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java
+++ b/
src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java
@@
-81,6
+81,7
@@
public class DriveTrain extends Subsystem {
frontRight.set(-right);
rearRight.set(-right);
frontRight.set(-right);
rearRight.set(-right);
+ this.isClimbing = true;
}
public void joystickDrive(final double thrust, final double twist) {
}
public void joystickDrive(final double thrust, final double twist) {
@@
-89,6
+90,7
@@
public class DriveTrain extends Subsystem {
public void stop() {
setMotorValues(0, 0);
public void stop() {
setMotorValues(0, 0);
+ this.isClimbing = false;
}
public double getLeftMotorVal() {
}
public double getLeftMotorVal() {
@@
-192,6
+194,10
@@
public class DriveTrain extends Subsystem {
return this.isClimbing;
}
return this.isClimbing;
}
+ public void setClimbing(boolean isClimbing) {
+ this.isClimbing = isClimbing;
+ }
+
public double getClimbingSpeed() {
return this.CLIMBER_SPEED;
}
public double getClimbingSpeed() {
return this.CLIMBER_SPEED;
}