Class WsDoubleSolenoidConfig
java.lang.Object
org.wildstang.hardware.roborio.outputs.config.WsDoubleSolenoidConfig
- All Implemented Interfaces:
OutputConfig
Contains configurations for double solenoids.
-
Constructor Summary
ConstructorsConstructorDescriptionWsDoubleSolenoidConfig(edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel1, int channel2, WsDoubleSolenoidState p_default) Construct the double solenoid config. -
Method Summary
Modifier and TypeMethodDescriptionintReturn the forward channel number.intReturn the reverse channel number.Return the default solenoid state.edu.wpi.first.wpilibj.PneumaticsModuleTypeReturn the module number.toString()Builds a JSON String describing the solenoid config.
-
Constructor Details
-
WsDoubleSolenoidConfig
public WsDoubleSolenoidConfig(edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel1, int channel2, WsDoubleSolenoidState p_default) Construct the double solenoid config.- Parameters:
module- Module number.channel1- Forward channel number.channel2- Reverse channel number.p_default- Default state.
-
-
Method Details
-
getChannel1
public int getChannel1()Return the forward channel number.- Returns:
- The forward channel number.
-
getChannel2
public int getChannel2()Return the reverse channel number.- Returns:
- The reverse channel number.
-
getDefault
Return the default solenoid state.- Returns:
- The default solenoid state.
-
getModule
public edu.wpi.first.wpilibj.PneumaticsModuleType getModule()Return the module number.- Returns:
- The module number.
-
toString
Builds a JSON String describing the solenoid config.
-