2323import org .usfirst .frc .team199 .Robot2018 .subsystems .IntakeEject ;
2424import org .usfirst .frc .team199 .Robot2018 .subsystems .Lift ;
2525
26+ import edu .wpi .first .wpilibj .CameraServer ;
2627import edu .wpi .first .wpilibj .DriverStation ;
2728import edu .wpi .first .wpilibj .IterativeRobot ;
2829import edu .wpi .first .wpilibj .PIDController ;
@@ -59,6 +60,7 @@ public class Robot extends IterativeRobot {
5960 String [] fmsPossibilities = { "LL" , "LR" , "RL" , "RR" };
6061
6162 public static SmartDashboardInterface sd = new SmartDashboardInterface () {
63+ @ Override
6264 public double getConst (String key , double def ) {
6365 Preferences pref = Preferences .getInstance ();
6466 if (!pref .containsKey ("Const/" + key )) {
@@ -71,6 +73,7 @@ public double getConst(String key, double def) {
7173 return pref .getDouble ("Const/" + key , def );
7274 }
7375
76+ @ Override
7477 public void putConst (String key , double def ) {
7578 Preferences pref = Preferences .getInstance ();
7679 pref .putDouble ("Const/" + key , def );
@@ -79,14 +82,17 @@ public void putConst(String key, double def) {
7982 }
8083 }
8184
85+ @ Override
8286 public void putData (String string , PIDController controller ) {
8387 SmartDashboard .putData (string , controller );
8488 }
8589
90+ @ Override
8691 public void putNumber (String string , double d ) {
8792 SmartDashboard .putNumber (string , d );
8893 }
8994
95+ @ Override
9096 public void putBoolean (String string , boolean b ) {
9197 SmartDashboard .putBoolean (string , b );
9298 }
@@ -157,8 +163,8 @@ public void robotInit() {
157163 autoScripts = AutoUtils .parseScriptFile (Preferences .getInstance ().getString ("autoscripts" , "" ));
158164
159165 listen = new Listener ();
160- // CameraServer.getInstance().startAutomaticCapture(0);
161- // CameraServer.getInstance().startAutomaticCapture(1);
166+ CameraServer .getInstance ().startAutomaticCapture (0 );
167+ CameraServer .getInstance ().startAutomaticCapture (1 );
162168 }
163169
164170 /**
0 commit comments