Class WsDoubleSolenoid
- java.lang.Object
-
- org.wildstang.framework.io.outputs.Output
-
- org.wildstang.framework.io.outputs.DiscreteOutput
-
- org.wildstang.hardware.roborio.outputs.WsDoubleSolenoid
-
public class WsDoubleSolenoid extends DiscreteOutput
Controls a double solenoid.
-
-
Constructor Summary
Constructors Constructor Description WsDoubleSolenoid(java.lang.String name, int canId, edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel1, int channel2, WsDoubleSolenoidState p_default)
Constructs the solenoid from config.WsDoubleSolenoid(java.lang.String name, edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel1, int channel2, WsDoubleSolenoidState p_default)
Constructs the solenoid from config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
sendDataToOutput()
Sets solenoid state to current value.-
Methods inherited from class org.wildstang.framework.io.outputs.DiscreteOutput
getValue, setValue
-
-
-
-
Constructor Detail
-
WsDoubleSolenoid
public WsDoubleSolenoid(java.lang.String name, edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel1, int channel2, WsDoubleSolenoidState p_default)
Constructs the solenoid from config.- Parameters:
name
- Descriptive name of the solenoid.module
- Model of PCM used which the solenoid is connected to.channel1
- Hardware port number the first solenoid is connected to.channel2
- Hardware port number the second solenoid is connected to.p_default
- Default state.
-
WsDoubleSolenoid
public WsDoubleSolenoid(java.lang.String name, int canId, edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel1, int channel2, WsDoubleSolenoidState p_default)
Constructs the solenoid from config. This constructor is used if the CAN ID of the PCM is not the default value.- Parameters:
name
- Descriptive name of the solenoid.canId
- CAN id of the PCM the solenoid is connected to.module
- Model of PCM used which the solenoid is connected to.channel1
- Hardware port number the first solenoid is connected to.channel2
- Hardware port number the second solenoid is connected to.p_default
- Default state.
-
-
Method Detail
-
sendDataToOutput
protected void sendDataToOutput()
Sets solenoid state to current value.- Specified by:
sendDataToOutput
in classOutput
-
-