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) withTranslation(double forward, double right, double up)
-
Constructor Details
-
LimelightConfig
-
-
Method Details
-
withTranslation
- Parameters:
forward- (meters) forward from center of robotright- (meters) right from center of robotup- (meters) up from center of robot- Returns:
-
withRotation
- 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:
-
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()
-