From d988914105a45a78f695a3a3268d10c624328f52 Mon Sep 17 00:00:00 2001 From: HFocus Date: Tue, 19 Mar 2019 20:14:36 -0600 Subject: [PATCH] Add WristState boolean --- .../java/org/usfirst/frc4388/robot/subsystems/Pneumatics.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/2019robot/src/main/java/org/usfirst/frc4388/robot/subsystems/Pneumatics.java b/2019robot/src/main/java/org/usfirst/frc4388/robot/subsystems/Pneumatics.java index bf76b52..b6998b6 100644 --- a/2019robot/src/main/java/org/usfirst/frc4388/robot/subsystems/Pneumatics.java +++ b/2019robot/src/main/java/org/usfirst/frc4388/robot/subsystems/Pneumatics.java @@ -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) { }