Package frc.robot.vision
Class LimelightTarget
- java.lang.Object
-
- frc.robot.vision.LimelightTarget
-
public class LimelightTarget extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LimelightTarget(double tx, double ty, double ta, double ts)
Create a LimelightTarget
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.wpi.first.wpilibj.geometry.Rotation2d
getRotation()
Get the target rotationvoid
set(double tx, double ty, double ta, double ts)
Set target params
-
-
-
Method Detail
-
set
public void set(double tx, double ty, double ta, double ts)
Set target params- Parameters:
tx
- Target X anglety
- Target Y angleta
- Target areats
- Target skew
-
getRotation
public edu.wpi.first.wpilibj.geometry.Rotation2d getRotation()
Get the target rotation- Returns:
- Target rotation
-
-