Class WsRelay
- java.lang.Object
 - 
- org.wildstang.framework.io.outputs.Output
 - 
- org.wildstang.framework.io.outputs.DiscreteOutput
 - 
- org.wildstang.hardware.roborio.outputs.WsRelay
 
 
 
 
- 
public class WsRelay extends DiscreteOutput
Controls a relay. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendDataToOutput()Sets relay state to a value based off the current state.- 
Methods inherited from class org.wildstang.framework.io.outputs.DiscreteOutput
getValue, setValue 
 - 
 
 - 
 
- 
- 
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:
 sendDataToOutputin classOutput
 
 - 
 
 -