Class Limelight.LimelightConfig

java.lang.Object
frc.spectrumLib.vision.Limelight.LimelightConfig
Enclosing class:
Limelight

public static class Limelight.LimelightConfig extends Object
Network-table name and mounting position for one camera.

Lombok chains the setters, so config calls read as one expression: config.setName("limelight").setAttached(true).

  • Constructor Details

    • LimelightConfig

      public LimelightConfig(String name)
  • Method Details

    • withTranslation

      public Limelight.LimelightConfig withTranslation(double forward, double right, double up)
      Sets the camera's mounting offsets.
      Parameters:
      forward - metres ahead of the robot center
      right - metres right of the robot center
      up - metres above the robot center
    • withRotation

      public Limelight.LimelightConfig withRotation(double roll, double pitch, double yaw)
      Sets the camera's orientation in degrees, expressed in the robot frame.
    • getName

      public String getName()
      Must match the name given in the LL dashboard.
    • setName

      public Limelight.LimelightConfig setName(String name)
      Must match the name given in the LL dashboard.
      Returns:
      this.
    • isAttached

      public boolean isAttached()
      Whether this camera is physically connected to the robot.
    • setAttached

      public Limelight.LimelightConfig setAttached(boolean attached)
      Whether this camera is physically connected to the robot.
      Returns:
      this.
    • getForward

      public double getForward()
      Mount offsets from the robot center; forward is positive toward the front.
    • getRight

      public double getRight()
    • getUp

      public double getUp()
    • getRoll

      public double getRoll()
      Camera orientation as a Rotation3d in the robot frame.
    • getPitch

      public double getPitch()
    • getYaw

      public double getYaw()