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 void
extend()
Extend the piston.boolean
isExtended()
Determines if the piston is extended.boolean
isInverted()
Determines if the piston is inverted.boolean
isRetracted()
Determines if the piston is retracted.void
retract()
Retract the piston.void
setInverted(boolean inverted)
Invert the piston.
-
-
-
Method Detail
-
extend
public void extend()
Description copied from interface:Piston
Extend the piston.
-
retract
public void retract()
Description copied from interface:Piston
Retract the piston.
-
isExtended
public boolean isExtended()
Description copied from interface:Piston
Determines if the piston is extended.- Specified by:
isExtended
in interfacePiston
- Returns:
- True if the piston is extended.
-
isRetracted
public boolean isRetracted()
Description copied from interface:Piston
Determines if the piston is retracted.- Specified by:
isRetracted
in interfacePiston
- Returns:
- True if the piston is retracted.
-
setInverted
public void setInverted(boolean inverted)
Description copied from interface:Piston
Invert the piston.- Specified by:
setInverted
in interfacePiston
- Parameters:
inverted
- True if the piston is inverted.
-
isInverted
public boolean isInverted()
Description copied from interface:Piston
Determines if the piston is inverted.- Specified by:
isInverted
in interfacePiston
- Returns:
- True if the piston is inverted.
-
-