Skip to content

Commit 8d953fe

Browse files
committed
fixed tables
1 parent 9e021fe commit 8d953fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

RobotSideCode/wallEYE/src/main/java/WallEye/WallEyeCam.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ public WallEyeCam(String tableName, int camIndex, int dioPort) {
6464
double[] def = {2767.0, 2767.0, 2767.0, 2767.0, 2767.0, 2767.0, 2767.0};
6565
long[] defInt = {-1};
6666

67-
table = table.getSubTable("Result" + camIndex);
67+
NetworkTable subTable = table.getSubTable("Result" + camIndex);
6868

69-
pose1Sub = table.getDoubleArrayTopic("Pose1").subscribe(def);
70-
pose2Sub = table.getDoubleArrayTopic("Pose2").subscribe(def);
71-
timestampSub = table.getDoubleTopic("timestamp").subscribe(0.0);
72-
ambiguitySub = table.getDoubleTopic("ambiguity").subscribe(1.0);
73-
tagsSub = table.getIntegerArrayTopic("tags").subscribe(defInt);
69+
pose1Sub = subTable.getDoubleArrayTopic("Pose1").subscribe(def);
70+
pose2Sub = subTable.getDoubleArrayTopic("Pose2").subscribe(def);
71+
timestampSub = subTable.getDoubleTopic("timestamp").subscribe(0.0);
72+
ambiguitySub = subTable.getDoubleTopic("ambiguity").subscribe(1.0);
73+
tagsSub = subTable.getIntegerArrayTopic("tags").subscribe(defInt);
7474

7575
updateSub = table.getIntegerTopic("Update" + camIndex).subscribe(0);
7676
connectSub = table.getBooleanTopic("Connected" + camIndex).subscribe(false);

0 commit comments

Comments
 (0)