Package frc.lib5k.components.limelight
Class LimelightTarget
- java.lang.Object
- 
- frc.lib5k.components.limelight.LimelightTarget
 
- 
 public class LimelightTarget extends java.lang.ObjectA class for storing data about a Limelight vision target
- 
- 
Constructor SummaryConstructors Constructor Description LimelightTarget(double tx, double ty, double ta, double ts, double tshort, double tlong, java.lang.String camtran)Create a LimelightTarget
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetArea()Target AreadoublegetLongestSide()Sidelength of longest side of the fitted bounding boxdoublegetShortestSide()Sidelength of shortest side of the fitted bounding boxdoublegetSkew()Skew or rotationjava.lang.StringgetTranslationOrNull()Results of a 3D position solutiondoublegetX()Horizontal Offset From Crosshair To TargetdoublegetY()Vertical Offset From Crosshair To Target
 
- 
- 
- 
Constructor Detail- 
LimelightTargetpublic LimelightTarget(double tx, double ty, double ta, double ts, double tshort, double tlong, java.lang.String camtran)Create a LimelightTarget- Parameters:
- tx- Target X
- ty- Target Y
- ta- Target Area
- ts- Target skew
- tshort- Shortest side
- tlong- Longest side
- camtran- 3D Positioning data
 
 
- 
 - 
Method Detail- 
getXpublic double getX() Horizontal Offset From Crosshair To Target- Returns:
- -27 degrees to 27 degrees
 
 - 
getYpublic double getY() Vertical Offset From Crosshair To Target- Returns:
- -20.5 degrees to 20.5 degrees
 
 - 
getAreapublic double getArea() Target Area- Returns:
- 0% of image to 100% of image
 
 - 
getSkewpublic double getSkew() Skew or rotation- Returns:
- -90 degrees to 0 degrees
 
 - 
getShortestSidepublic double getShortestSide() Sidelength of shortest side of the fitted bounding box- Returns:
- pixels
 
 - 
getLongestSidepublic double getLongestSide() Sidelength of longest side of the fitted bounding box- Returns:
- pixels
 
 - 
getTranslationOrNullpublic java.lang.String getTranslationOrNull() Results of a 3D position solution- Returns:
- 6 numbers: Translation (x,y,y) Rotation(pitch,yaw,roll)
 
 
- 
 
-