Add WristState boolean

This commit is contained in:
HFocus
2019-03-19 20:14:36 -06:00
parent 60122e9e3d
commit d988914105
@@ -15,6 +15,7 @@ public class Pneumatics extends Subsystem {
private DoubleSolenoid ballIntake;
private DoubleSolenoid wrist;
public boolean wristState = false;
public Pneumatics() {
try {
@@ -59,11 +60,12 @@ public class Pneumatics extends Subsystem {
if (state==false) {
wrist.set(DoubleSolenoid.Value.kReverse);
}
wristState = state;
}
public void updateStatus(Robot.OperationMode operationMode) {
try {
SmartDashboard.putBoolean("Wrist", false);
SmartDashboard.putBoolean("Wrist", wristState);
} catch(Exception e) {
}