Class WsSolenoidConfig
- java.lang.Object
-
- org.wildstang.hardware.roborio.outputs.config.WsSolenoidConfig
-
- All Implemented Interfaces:
OutputConfig
public class WsSolenoidConfig extends java.lang.Object implements OutputConfig
Contains configurations for single solenoids.
-
-
Constructor Summary
Constructors Constructor Description WsSolenoidConfig(edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel, boolean p_default)Construct the solenoid config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChannel()Return the channel number.booleangetDefault()Return the default solenoid state.edu.wpi.first.wpilibj.PneumaticsModuleTypegetModule()Return the module number.java.lang.StringtoString()Builds a JSON String describing the solenoid config.
-
-
-
Method Detail
-
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
public java.lang.String toString()
Builds a JSON String describing the solenoid config.- Overrides:
toStringin classjava.lang.Object- Returns:
- Module number and channel number.
-
-