Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 0777385

Browse files
uncommented cams
1 parent 8c9d053 commit 0777385

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • Robot2018/src/org/usfirst/frc/team199/Robot2018

Robot2018/src/org/usfirst/frc/team199/Robot2018/Robot.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.usfirst.frc.team199.Robot2018.subsystems.IntakeEject;
2424
import org.usfirst.frc.team199.Robot2018.subsystems.Lift;
2525

26+
import edu.wpi.first.wpilibj.CameraServer;
2627
import edu.wpi.first.wpilibj.DriverStation;
2728
import edu.wpi.first.wpilibj.IterativeRobot;
2829
import 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

Comments
 (0)