Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
finlaywashere committed Nov 28, 2019
1 parent 9a30933 commit 26b6473
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/ca/team2706/vision/vision2019/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public static void loadVisionParams() {
params.getAttribs().add(new Attribute("width", width + ""));
params.getAttribs().add(new Attribute("height", height + ""));
NetworkTable visionTable = NetworkTable
.getTable("vision-" + params.getByName("name").getValue() + "/params");
.getTable("vision-" + params.getByName("name").getValue() + "/");
NetworkTablesManager.tables.put(s, visionTable);
// The parameters are now valid, because it didnt throw an error
visionParamsList.add(params);
Expand Down Expand Up @@ -275,6 +275,8 @@ public static void sendVisionDataOverNetworkTables(VisionData visionData) {
visionTable.putNumber("area", visionData.preferredTarget.areaNorm);

visionTable.putNumber("angle", visionData.preferredTarget.xCentreNorm * 45);

visionTable.putNumber("distance", visionData.preferredTarget.distance);
}
}

Expand Down

0 comments on commit 26b6473

Please sign in to comment.