Class GPiston
- java.lang.Object
-
- com.thegongoliers.output.actuators.GPiston
-
-
Constructor Summary
Constructors Constructor Description GPiston(edu.wpi.first.wpilibj.Solenoid solenoid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidextend()Extend the piston.booleanisExtended()Determines if the piston is extended.booleanisInverted()Determines if the piston is inverted.booleanisRetracted()Determines if the piston is retracted.voidretract()Retract the piston.voidsetInverted(boolean inverted)Invert the piston.
-
-
-
Method Detail
-
extend
public void extend()
Description copied from interface:PistonExtend the piston.
-
retract
public void retract()
Description copied from interface:PistonRetract the piston.
-
isExtended
public boolean isExtended()
Description copied from interface:PistonDetermines if the piston is extended.- Specified by:
isExtendedin interfacePiston- Returns:
- True if the piston is extended.
-
isRetracted
public boolean isRetracted()
Description copied from interface:PistonDetermines if the piston is retracted.- Specified by:
isRetractedin interfacePiston- Returns:
- True if the piston is retracted.
-
setInverted
public void setInverted(boolean inverted)
Description copied from interface:PistonInvert the piston.- Specified by:
setInvertedin interfacePiston- Parameters:
inverted- True if the piston is inverted.
-
isInverted
public boolean isInverted()
Description copied from interface:PistonDetermines if the piston is inverted.- Specified by:
isInvertedin interfacePiston- Returns:
- True if the piston is inverted.
-
-