This repository was archived by the owner on Sep 14, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Robot2018/src/org/usfirst/frc/team199/Robot2018/subsystems Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66
77import edu .wpi .first .wpilibj .DoubleSolenoid ;
88import edu .wpi .first .wpilibj .PowerDistributionPanel ;
9- import edu .wpi .first .wpilibj .Preferences ;
109import edu .wpi .first .wpilibj .VictorSP ;
1110import edu .wpi .first .wpilibj .command .Subsystem ;
11+ import edu .wpi .first .wpilibj .smartdashboard .SmartDashboard ;
1212
1313/**
1414 * kForward = intake closed, kReverse = intake open
@@ -128,7 +128,7 @@ public void toggleLeftIntake() {
128128 leftSolenoid .set (DoubleSolenoid .Value .kReverse );
129129 }
130130 leftOpen = !leftOpen ;
131- Preferences . getInstance (). putBoolean ("Left Horizontal Solenoid Open" , leftOpen );
131+ SmartDashboard . putBoolean ("Left Solenoid Open" , leftOpen );
132132 }
133133
134134 /**
@@ -144,7 +144,7 @@ public void toggleRightIntake() {
144144 rightSolenoid .set (DoubleSolenoid .Value .kReverse );
145145 }
146146 rightOpen = !rightOpen ;
147- Preferences . getInstance () .putBoolean ("Right Solenoid Open" , rightOpen );
147+ SmartDashboard .putBoolean ("Right Solenoid Open" , rightOpen );
148148 }
149149
150150 /**
You can’t perform that action at this time.
0 commit comments