Package frc.lib.lowlevel
Class SparkTap
java.lang.Object
frc.lib.lowlevel.SparkTap
High-performance Spark Max CAN Interceptor. Provides zero-JNI, sub-millisecond access to motor
telemetry via shared native memory.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the different CAN status frames sent by the Spark Max.classDedicated view into the shared CAN telemetry table for a specific motor. -
Method Summary
-
Method Details
-
getInstance
Returns the singleton instance of SparkTap.- Returns:
- The SparkTap instance.
-
getMotor
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.
-