Package edu.wpi.first.wpilibj
Class MockSolenoid
java.lang.Object
xbot.common.controls.actuators.XSolenoid
edu.wpi.first.wpilibj.MockSolenoid
- All Implemented Interfaces:
XBaseIO
,ISimulatableSolenoid
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.actuators.XSolenoid
XSolenoid.XSolenoidFactory
-
Field Summary
Fields inherited from class xbot.common.controls.actuators.XSolenoid
isInverted
Fields inherited from interface xbot.common.simulation.ISimulatableSolenoid
SOLENOID_POWER_MODE
-
Constructor Summary
-
Method Summary
Methods inherited from class xbot.common.controls.actuators.XSolenoid
getAdjusted, getChannel, setInverted, setOn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xbot.common.simulation.ISimulatableSolenoid
buildMotorObject
-
Field Details
-
on
protected boolean on
-
-
Constructor Details
-
MockSolenoid
-
-
Method Details
-
set
public void set(boolean on) -
get
public boolean get() -
getMaxSupportedChannel
public int getMaxSupportedChannel()- Specified by:
getMaxSupportedChannel
in classXSolenoid
-
getSimulationData
public org.json.JSONObject getSimulationData()- Specified by:
getSimulationData
in interfaceISimulatableSolenoid
-