Class WsRelay

    • Constructor Summary

      Constructors 
      Constructor Description
      WsRelay​(java.lang.String p_name, int channel)
      Constructs the relay from config.
      WsRelay​(java.lang.String p_name, int channel, edu.wpi.first.wpilibj.Relay.Direction direction)
      Constructs the relay from config.
    • Constructor Detail

      • WsRelay

        public WsRelay​(java.lang.String p_name,
                       int channel)
        Constructs the relay from config.
        Parameters:
        p_name - Descriptive name of the relay.
        channel - Hardware port number the relay is connected to.
      • WsRelay

        public WsRelay​(java.lang.String p_name,
                       int channel,
                       edu.wpi.first.wpilibj.Relay.Direction direction)
        Constructs the relay from config.
        Parameters:
        p_name - Descriptive name of the relay.
        channel - Hardware port number the relay is connected to.
        direction - Relay operation direction.
    • Method Detail

      • sendDataToOutput

        public void sendDataToOutput()
        Sets relay state to a value based off the current state.
        Specified by:
        sendDataToOutput in class Output