robotpy_toolkit_7407.pneumatics.pistons package
Submodules
robotpy_toolkit_7407.pneumatics.pistons.double_solenoid module
- class robotpy_toolkit_7407.pneumatics.pistons.double_solenoid.DoubleSolenoidPiston(module, forward_channel, reverse_channel, ctre_hub=False)
Bases:
object
Wrapper class for a double solenoid piston.
- extend()
Extend the piston.
- get_value() Value
Get the piston state (wpilib.DoubleSolenoid.Value.kReverse, kForward, or kOff).
- retract()
Retract the piston.
- toggle()
Toggle the piston.
robotpy_toolkit_7407.pneumatics.pistons.single_solenoid module
- class robotpy_toolkit_7407.pneumatics.pistons.single_solenoid.SingleSolenoidPiston(module, channel, ctre_hub=False)
Bases:
object
Wrapper class for a single solenoid piston.
- extend()
Extend the piston.
- get_value() bool
Get the piston state (True for extended, False for retracted).
- retract()
Retract the piston.
- toggle()
Toggle the piston.