Skip to content

Commit ad7593c

Browse files
Configured limelight IPs
1 parent b890f05 commit ad7593c

2 files changed

Lines changed: 13 additions & 22 deletions

File tree

src/main/java/frc/robot/constants/VISION.java

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@
1414

1515
public final class VISION {
1616
public enum CAMERA_SERVER {
17-
limelightL("limelight-left", "10.42.1.12"),
17+
// v2.0 configuration:
18+
// Limelight left (now front) -> 10.42.1.12
19+
// Limelight right -> 10.42.1.11
20+
21+
// v2.5 configuration:
22+
// Limelight front (formerly left) -> 10.42.1.12
23+
// Limelight left (new) -> 10.42.1.13
24+
// Limelight right -> 10.42.1.11
25+
26+
limelightF("limelight-front", "10.42.1.12"),
1827
limelightR("limelight-right", "10.42.1.11"),
19-
// limelight 3
20-
limelightB("limelight-back", "10.42.1.13");
28+
limelightL("limelight-left", "10.42.1.13");
2129

2230
private final String name;
2331
private final String ip;
@@ -47,23 +55,6 @@ public String toString() {
4755
public static final Angle kLimelight4VFOV = Degrees.of(56.2);
4856
public static final Angle kLimelight4DFOV = Degrees.of(75.07);
4957

50-
// TODO: Update values
51-
// Camera offset from robot center. Camera F is positioned on the hopper
52-
public static final Transform3d limelightFPosition =
53-
new Transform3d(
54-
new Translation3d(
55-
Meters.of(0).magnitude(), Meters.of(0).magnitude(), Meters.of(0).magnitude()),
56-
new Rotation3d(Degrees.of(0), Degrees.of(0), Degrees.of(180)));
57-
58-
// TODO: Update values
59-
// Camera offset from robot center. Camera B is facing out of the rear of the robot (On the
60-
// EndEffector side)
61-
public static final Transform3d limelightBPosition =
62-
new Transform3d(
63-
new Translation3d(
64-
Meters.of(0).magnitude(), Meters.of(0).magnitude(), Meters.of(0).magnitude()),
65-
new Rotation3d(Degrees.of(0), Degrees.of(0), Degrees.of(180)));
66-
6758
public static final Distance poseXTolerance = Inches.of(4);
6859
public static final Distance poseYTolerance = Inches.of(4);
6960
public static final Distance poseZTolerance = Inches.of(4);

src/main/java/frc/robot/subsystems/Vision.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public class Vision extends SubsystemBase {
2929
// private LimelightSim visionSim;
3030
private Controls m_controls;
3131

32-
VISION.Limelight LLL = new VISION.Limelight(CAMERA_SERVER.limelightL);
32+
VISION.Limelight LLL = new VISION.Limelight(CAMERA_SERVER.limelightF);
3333
VISION.Limelight LLR = new VISION.Limelight(CAMERA_SERVER.limelightR);
34-
VISION.Limelight LLB = new VISION.Limelight(CAMERA_SERVER.limelightB);
34+
VISION.Limelight LLB = new VISION.Limelight(CAMERA_SERVER.limelightL);
3535

3636
private boolean m_localized;
3737

0 commit comments

Comments
 (0)