Class WsAbsoluteEncoder


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

      • WsAbsoluteEncoder

        public WsAbsoluteEncoder​(java.lang.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 Detail

      • readRawValue

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