Skip to content

Commit

Permalink
minor vision cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelLesirge committed Sep 16, 2024
1 parent ec65936 commit 552d0b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void addVisionEstimateConsumer(
timestampRobotPoseEstimateConsumers.add(timestampRobotPoseEstimateConsumer);
}

public Stream<Camera> cameras() {
private Stream<Camera> cameras() {
return Arrays.stream(cameras);
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/vision/Camera.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public class Camera {
private static final LoggedTunableNumberGroup group =
new LoggedTunableNumberGroup("VisionResultsStatus");

private static final LoggedTunableNumber thetaStdDevCoefficient =
group.build("thetaStdDevCoefficient", 0.075);
private static final LoggedTunableNumber xyStdDevCoefficient =
group.build("xyStdDevCoefficient", 0.075);
private static final LoggedTunableNumber thetaStdDevCoefficient =
group.build("thetaStdDevCoefficient", 0.085);

private static final LoggedTunableNumber zHeightToleranceMeters =
group.build("zHeightToleranceMeters", 0.5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ public class VisionConstants {

public record CameraConfig(String cameraName, Transform3d robotToCamera) {}

// TODO find actual values here, as well as in Asset config
public static final CameraConfig FRONT_CAMERA =
new CameraConfig(
"frontCam",
new Transform3d(
new Translation3d(0.805, 0, 0.0762), new Rotation3d(0, 0, Math.toRadians(30))));
new Translation3d(0.805, 0, 0), new Rotation3d(0, Math.toRadians(-30), 0)));
}

0 comments on commit 552d0b5

Please sign in to comment.