projects
/
3501
/
2017steamworks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove getters for shift pistons
[3501/2017steamworks]
/
src
/
org
/
usfirst
/
frc
/
team3501
/
robot
/
commands
/
driving
/
ToggleGear.java
diff --git
a/src/org/usfirst/frc/team3501/robot/commands/driving/ToggleGear.java
b/src/org/usfirst/frc/team3501/robot/commands/driving/ToggleGear.java
index 3a17440b1e920cd182db1cbc87d20c003296346e..ca802e705291cff2ebd02ae5658a25f9998dd840 100644
(file)
--- a/
src/org/usfirst/frc/team3501/robot/commands/driving/ToggleGear.java
+++ b/
src/org/usfirst/frc/team3501/robot/commands/driving/ToggleGear.java
@@
-31,16
+31,11
@@
public class ToggleGear extends Command {
Value rightGearPistonValue = driveTrain.getRightGearPistonValue();
if (leftGearPistonValue == Constants.DriveTrain.LOW_GEAR) {
Value rightGearPistonValue = driveTrain.getRightGearPistonValue();
if (leftGearPistonValue == Constants.DriveTrain.LOW_GEAR) {
- driveTrain.setHighGear(
driveTrain.getLeftPiston()
);
+ driveTrain.setHighGear();
} else {
} else {
- driveTrain.setLowGear(
driveTrain.getLeftPiston()
);
+ driveTrain.setLowGear();
}
}
- if (rightGearPistonValue == Constants.DriveTrain.LOW_GEAR) {
- driveTrain.setHighGear(driveTrain.getRightPiston());
- } else {
- driveTrain.setLowGear(driveTrain.getRightPiston());
- }
}
@Override
}
@Override