Class LimelightTarget


  • public class LimelightTarget
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double ta  
      double ts  
      double tx  
      double ty  
    • 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 rotation
      void set​(double tx, double ty, double ta, double ts)
      Set target params
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • tx

        public double tx
      • ty

        public double ty
      • ta

        public double ta
      • ts

        public double ts
    • Constructor Detail

      • LimelightTarget

        public LimelightTarget​(double tx,
                               double ty,
                               double ta,
                               double ts)
        Create a LimelightTarget
        Parameters:
        tx - Target X angle
        ty - Target Y angle
        ta - Target area
        ts - Target skew
    • Method Detail

      • set

        public void set​(double tx,
                        double ty,
                        double ta,
                        double ts)
        Set target params
        Parameters:
        tx - Target X angle
        ty - Target Y angle
        ta - Target area
        ts - Target skew
      • getRotation

        public edu.wpi.first.wpilibj.geometry.Rotation2d getRotation()
        Get the target rotation
        Returns:
        Target rotation