Class WsSolenoid
java.lang.Object
org.wildstang.framework.io.outputs.Output
org.wildstang.framework.io.outputs.DigitalOutput
org.wildstang.hardware.roborio.outputs.WsSolenoid
Controls a single solenoid.
-
Constructor Summary
ConstructorsConstructorDescriptionWsSolenoid(String name, int channel1) Constructs the solenoid from config.WsSolenoid(String name, int canId, edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel1, boolean p_default) Constructs the solenoid from config.WsSolenoid(String name, edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel1, boolean p_default) Constructs the solenoid from config. -
Method Summary
Modifier and TypeMethodDescriptionvoidDoes nothing, config values only affects start state.voidSets solenoid state to current value.Methods inherited from class org.wildstang.framework.io.outputs.DigitalOutput
getValue, setValue
-
Constructor Details
-
WsSolenoid
public WsSolenoid(String name, edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel1, boolean 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 solenoid is connected to.p_default- Default state.
-
WsSolenoid
public WsSolenoid(String name, int canId, edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel1, boolean 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 solenoid is connected to.p_default- Default state.
-
WsSolenoid
Constructs the solenoid from config.- Parameters:
name- Descriptive name of the solenoid.channel1- Hardware port number the solenoid is connected to.
-
-
Method Details
-
sendDataToOutput
public void sendDataToOutput()Sets solenoid state to current value.- Specified by:
sendDataToOutputin classOutput
-
notifyConfigChange
public void notifyConfigChange()Does nothing, config values only affects start state.
-