Package frc.spectrumLib.vision
Class Limelight.LimelightConfig
java.lang.Object
frc.spectrumLib.vision.Limelight.LimelightConfig
- Enclosing class:
- Limelight
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleMount offsets from the robot center; forward is positive toward the front.getName()Must match the name given in the LL dashboard.doublegetPitch()doublegetRight()doublegetRoll()Camera orientation as a Rotation3d in the robot frame.doublegetUp()doublegetYaw()booleanWhether this camera is physically connected to the robot.setAttached(boolean attached) Whether this camera is physically connected to the robot.Must match the name given in the LL dashboard.withRotation(double roll, double pitch, double yaw) Sets the camera's orientation in degrees, expressed in the robot frame.withTranslation(double forward, double right, double up) Sets the camera's mounting offsets.
-
Constructor Details
-
LimelightConfig
-
-
Method Details
-
withTranslation
Sets the camera's mounting offsets.- Parameters:
forward- metres ahead of the robot centerright- metres right of the robot centerup- metres above the robot center
-
withRotation
Sets the camera's orientation in degrees, expressed in the robot frame. -
getName
Must match the name given in the LL dashboard. -
setName
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
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()
-