Skip to content

Commit

Permalink
Remove camera params from core vision constants
Browse files Browse the repository at this point in the history
  • Loading branch information
aidnem committed Nov 19, 2024
1 parent a68d735 commit 055dec5
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions vision/src/main/java/coppercore/vision/CoreVisionConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@
import edu.wpi.first.math.Matrix;
import edu.wpi.first.math.VecBuilder;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.geometry.Rotation3d;
import edu.wpi.first.math.geometry.Transform3d;
import edu.wpi.first.math.geometry.Translation3d;
import edu.wpi.first.math.numbers.N1;
import edu.wpi.first.math.numbers.N3;
import edu.wpi.first.math.util.Units;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.Filesystem;
import java.io.IOException;
import java.util.Collections;
import java.util.List;

public final class CoreVisionConstants {
public static final String tagLayoutName = "Pairs-Only";
Expand All @@ -34,39 +31,6 @@ public final class CoreVisionConstants {

public static final Matrix<N3, N1> driveUncertainty = VecBuilder.fill(0.1, 0.1, 0.1);

public static final List<CameraParams> cameras =
List.of(
new CameraParams(
"Front-Left",
1280,
800,
16,
Rotation2d.fromDegrees(70),
new Transform3d(
new Translation3d(0.306, 0.259, 0.211),
new Rotation3d(0, -0.349, 0.785)),
CameraTrustZone.LEFT),
new CameraParams(
"Front-Right",
1280,
800,
16,
Rotation2d.fromDegrees(70),
new Transform3d(
new Translation3d(0.312, -0.304, 0.217),
new Rotation3d(0.0, -0.349, -0.785)),
CameraTrustZone.RIGHT),
new CameraParams(
"Front-Center",
1280,
800,
16,
Rotation2d.fromDegrees(70),
new Transform3d(
new Translation3d(0.312, -0.237, 0.233),
new Rotation3d(0.0, -0.349, 0.524)),
CameraTrustZone.MIDDLE));

public static record CameraParams(
String name,
int xResolution,
Expand Down

0 comments on commit 055dec5

Please sign in to comment.