Class Limelight.LimelightConfig

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

public static class Limelight.LimelightConfig extends Object
  • Constructor Details

    • LimelightConfig

      public LimelightConfig(String name)
  • Method Details

    • withTranslation

      public Limelight.LimelightConfig withTranslation(double forward, double right, double up)
      Parameters:
      forward - (meters) forward from center of robot
      right - (meters) right from center of robot
      up - (meters) up from center of robot
      Returns:
    • withRotation

      public Limelight.LimelightConfig withRotation(double roll, double pitch, double yaw)
      Parameters:
      roll - (degrees) roll of limelight || positive is rotated right
      pitch - (degrees) pitch of limelight || positive is camera tilted up
      yaw - (yaw) yaw of limelight || positive is rotated left
      Returns:
    • getName

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

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

      public boolean isAttached()
    • setAttached

      public Limelight.LimelightConfig setAttached(boolean attached)
      Returns:
      this.
    • isIntegrating

      public boolean isIntegrating()
    • setIntegrating

      public Limelight.LimelightConfig setIntegrating(boolean isIntegrating)
      Returns:
      this.
    • getForward

      public double getForward()
      Physical Config
    • getRight

      public double getRight()
    • getUp

      public double getUp()
    • getRoll

      public double getRoll()
    • getPitch

      public double getPitch()
    • getYaw

      public double getYaw()