Package-level declarations

Types

Link copied to clipboard
open class AbsoluteEncoder(val name: String, enc: DutyCycleEncoder, unitPerRotation: Double, inverted: Boolean, offset: Double, pollTime: Double = 0.02, samplesPerAverage: Int = 1) : Encoder

This class uses an absolute encoder, gear ratio and UPR to give the absolute position of the module or rotational velocity of the module.

Link copied to clipboard
class BackupEncoder(primary: Encoder, fallback: Encoder, velThreshold: Double, pollTime: Double = 0.02) : Encoder

A wrapper to use when you have one external encoder that's more accurate but may be unplugged and an integrated encoder that's less accurate but is less likely to be unplugged.

Link copied to clipboard
abstract class Encoder(val name: String, encoderCPR: Int, unitPerRotation: Double, gearing: Double, pollTime: Double) : Loggable

A wrapper around encoders. Allows resetting encoders to a position.

Link copied to clipboard

Create an encoder given a motor controller and its configuration

Link copied to clipboard
class NEOEncoder(val name: String, enc: RelativeEncoder, unitPerRotation: Double, gearing: Double, pollTime: Double = 0.02) : Encoder

A NEO integrated encoder plugged into a Spark

Link copied to clipboard
class QuadEncoder(val name: String, encoder: Encoder, encoderCPR: Int, unitPerRotation: Double, gearing: Double, pollTime: Double = 0.02) : Encoder

An external quadrature encoder

Link copied to clipboard
class TalonEncoder(val name: String, talon: BaseTalon, encoderCPR: Int, unitPerRotation: Double, gearing: Double, pollTime: Double = 0.02) : Encoder

An encoder plugged into a TalonSRX