Class ThriftyNovaEncoderSwerve

java.lang.Object
swervelib.encoders.SwerveAbsoluteEncoder
swervelib.encoders.ThriftyNovaEncoderSwerve
All Implemented Interfaces:
AutoCloseable

public class ThriftyNovaEncoderSwerve extends SwerveAbsoluteEncoder
Thrifty Nova absolute encoder, attached through the data port.
  • Field Details

    • motor

      protected com.thethriftybot.devices.ThriftyNova motor
      The absolute encoder is directly interfaced through the Thrifty Nova motor.
    • inverted

      protected boolean inverted
      Inversion state of the attached encoder.
    • offset

      protected double offset
      Offset of the absolute encoder.
  • Constructor Details

    • ThriftyNovaEncoderSwerve

      public ThriftyNovaEncoderSwerve(SwerveMotor motor, String encoderType)
      Create the ThriftyNovaEncoderSwerve object as an absolute encoder from the ThriftyNovaSwerve motor.
      Parameters:
      motor - SwerveMotor through which to interface with the attached encoder .
      encoderType - the type of encoder to use (options: "REV_ENCODER", "REDUX_ENCODER", "SRX_MAG_ENCODER")
  • Method Details