Class PhoenixOdometryThread

java.lang.Object
java.lang.Thread
frc.alotobots.library.subsystems.swervedrive.PhoenixOdometryThread
All Implemented Interfaces:
Runnable

public class PhoenixOdometryThread extends Thread
Provides an interface for asynchronously reading high-frequency measurements to a set of queues.
  • Method Details

    • getInstance

      public static PhoenixOdometryThread getInstance()
    • start

      public void start()
      Overrides:
      start in class Thread
    • registerSignal

      public Queue<Double> registerSignal(com.ctre.phoenix6.StatusSignal<edu.wpi.first.units.measure.Angle> signal)
    • registerSignal

      public Queue<Double> registerSignal(DoubleSupplier signal)
    • makeTimestampQueue

      public Queue<Double> makeTimestampQueue()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread