Class WsAbsoluteEncoder


public class WsAbsoluteEncoder extends WsAnalogInput
Reads an absolute encoder.
  • Constructor Details

    • WsAbsoluteEncoder

      public WsAbsoluteEncoder(String p_name, int channel, int p_maxVoltage)
      Construct the encoder.
      Parameters:
      p_name - Descriptive name of the encoder.
      channel - Hardware port the encoder is connected to.
      p_maxVoltage - Max output voltage of the encoder.
  • Method Details

    • readRawValue

      public double readRawValue()
      Reads the value from the encoder.
      Overrides:
      readRawValue in class WsAnalogInput
      Returns:
      Encoder position calucated from raw value.