Skip to content

Commit

Permalink
Added left/right vision cameras
Browse files Browse the repository at this point in the history
  • Loading branch information
BrownGenius committed Apr 5, 2024
1 parent 1f3282e commit 50ff1b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/main/java/frc/robot/commands/auto/AutoNamedCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public static class AutoConstants {
28, ArmConstants.noteScoreAngleInDegrees, ShooterConstants.velocityInRPM);
public static AutoScoreConstants scoreFromBetween2and3 =
new AutoScoreConstants(
11, ArmConstants.subwooferScoreFromPodiumAngleInDegrees, ShooterConstants.velocityInRPM);
11,
ArmConstants.subwooferScoreFromPodiumAngleInDegrees,
ShooterConstants.velocityInRPM);
}

public static void configure() {
Expand Down
15 changes: 9 additions & 6 deletions src/main/java/frc/robot/config/RobotConfigInferno.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,25 +148,28 @@ public RobotConfigInferno() {
new Translation3d(0.3048, 0, 0.22),
new Rotation3d(0, Units.degreesToRadians(-30), Units.degreesToRadians(0)))));

/*
cameras.add(
new VisionCamera(
"right",
"1196",
new Transform3d(
new Translation3d(
-Units.inchesToMeters(5.25), -Units.inchesToMeters(11.25), Units.inchesToMeters(7)),
new Rotation3d(0, Units.degreesToRadians(-30), Units.degreesToRadians(-90)))));
-Units.inchesToMeters(5.25),
-Units.inchesToMeters(11.25),
Units.inchesToMeters(7)),
new Rotation3d(0, Units.degreesToRadians(-32), Units.degreesToRadians(-90)))));

cameras.add(
new VisionCamera(
"left",
"1190",
new Transform3d(
new Translation3d(
-Units.inchesToMeters(5.25), Units.inchesToMeters(11.25), Units.inchesToMeters(7)),
new Rotation3d(0, Units.degreesToRadians(-30), Units.degreesToRadians(90)))));
*/
-Units.inchesToMeters(5.25),
Units.inchesToMeters(11.25),
Units.inchesToMeters(7)),
new Rotation3d(0, Units.degreesToRadians(-32), Units.degreesToRadians(90)))));

VisionConstants.visionDistanceOffsetInMeters = -0.2;
vision = new VisionSubsystem(cameras, AprilTagFields.k2024Crescendo.loadAprilTagLayoutField());

Expand Down

0 comments on commit 50ff1b1

Please sign in to comment.