Class IOCANCoder

java.lang.Object
frc.team_8840_lib.utils.IO.IOLayer
frc.team_8840_lib.IO.devices.IOCANCoder

public class IOCANCoder extends IOLayer
  • Constructor Details

    • IOCANCoder

      public IOCANCoder(Object... args)
  • Method Details

    • getAbsolutePosition

      public double getAbsolutePosition()
      Returns in degrees the position of the encoder
      Returns:
      The position of the encoder in degrees
    • setCache

      public void setCache(double value)
      Sets the cahced position of the encoder
      Parameters:
      value - The degree amount to set the encoder to
    • configAllSettings

      public void configAllSettings(com.ctre.phoenix.sensors.CANCoderConfiguration config)
      Configures all settings of the CANCoder
      Parameters:
      config - The configuration to set
    • configFactoryDefault

      public void configFactoryDefault()
    • getBaseName

      public String getBaseName()
      Overrides:
      getBaseName in class IOLayer