Class SparkTap

java.lang.Object
frc.lib.lowlevel.SparkTap

public class SparkTap extends Object
High-performance Spark Max CAN Interceptor. Provides zero-JNI, sub-millisecond access to motor telemetry via shared native memory.
  • Method Details

    • getInstance

      public static SparkTap getInstance()
      Returns the singleton instance of SparkTap.
      Returns:
      The SparkTap instance.
    • getMotor

      public SparkTap.MotorView getMotor(int deviceId)
      Returns a dedicated, zero-allocation view into a specific motor's status data.
      Parameters:
      deviceId - The CAN ID of the motor to access (0-63).
      Returns:
      A MotorView providing access to the specified motor's telemetry.
      Throws:
      IllegalArgumentException - if the deviceId is out of range.