Package frc.spectrumLib.vision
Class Limelight.LimelightConfig
java.lang.Object
frc.spectrumLib.vision.Limelight.LimelightConfig
- Enclosing class:
- Limelight
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublePhysical ConfiggetName()Must match to the name given in LL dashboarddoublegetPitch()doublegetRight()doublegetRoll()doublegetUp()doublegetYaw()booleanbooleansetAttached(boolean attached) setIntegrating(boolean isIntegrating) Must match to the name given in LL dashboardwithRotation(double roll, double pitch, double yaw) Sets the rotation of the limelight in degreeswithTranslation(double forward, double right, double up) Sets the position of the robot in meters
-
Constructor Details
-
LimelightConfig
-
-
Method Details
-
withTranslation
Sets the position of the robot in meters- Parameters:
forward- (meters) forward from center of robotright- (meters) right from center of robotup- (meters) up from center of robot- Returns:
- the LimelightConfig object
-
withRotation
Sets the rotation of the limelight in degrees- Parameters:
roll- (degrees) roll of limelight || positive is rotated rightpitch- (degrees) pitch of limelight || positive is camera tilted upyaw- (yaw) yaw of limelight || positive is rotated left- Returns:
- the LimelightConfig object
-
getName
Must match to the name given in LL dashboard -
setName
Must match to the name given in LL dashboard- Returns:
this.
-
isAttached
public boolean isAttached() -
setAttached
- Returns:
this.
-
isIntegrating
public boolean isIntegrating() -
setIntegrating
- 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()
-