Class WsSolenoidConfig
java.lang.Object
org.wildstang.hardware.roborio.outputs.config.WsSolenoidConfig
- All Implemented Interfaces:
OutputConfig
Contains configurations for single solenoids.
-
Constructor Summary
ConstructorsConstructorDescriptionWsSolenoidConfig(edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel, boolean p_default) Construct the solenoid config. -
Method Summary
Modifier and TypeMethodDescriptionintReturn the channel number.booleanReturn the default solenoid state.edu.wpi.first.wpilibj.PneumaticsModuleTypeReturn the module number.toString()Builds a JSON String describing the solenoid config.
-
Constructor Details
-
WsSolenoidConfig
public WsSolenoidConfig(edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel, boolean p_default) Construct the solenoid config.- Parameters:
module- Module number.channel- Channel number.p_default- Default state.
-
-
Method Details
-
getChannel
public int getChannel()Return the channel number.- Returns:
- The channel number.
-
getDefault
public boolean 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.
-