Class SpectrumCANcoderConfig

java.lang.Object
frc.spectrumLib.hardware.SpectrumCANcoderConfig

public class SpectrumCANcoderConfig extends Object
  • Constructor Details

    • SpectrumCANcoderConfig

      public SpectrumCANcoderConfig(double rotorToSensorRatio, double sensorToMechanismRatio, double offset, boolean attached, boolean inverted)
  • Method Details

    • getCANcoderID

      public int getCANcoderID()
    • setCANcoderID

      public void setCANcoderID(int CANcoderID)
    • getRotorToSensorRatio

      public double getRotorToSensorRatio()
      Rotor turns per CANcoder turn.
    • getSensorToMechanismRatio

      public double getSensorToMechanismRatio()
      CANcoder turns per mechanism turn.
    • getOffset

      public double getOffset()
      Offset applied to the reading, in rotations.
    • isAttached

      public boolean isAttached()
      false builds no CANcoder, for sim or a robot without one.
    • isInverted

      public boolean isInverted()
      true makes clockwise rotation positive.