public class WsRelay extends DiscreteOutput
Controls a relay.
  • Constructor Details

    • WsRelay

      public WsRelay(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(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 Details

    • sendDataToOutput

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