SolenoidSim
- class wpilib.simulation.SolenoidSim(*args, **kwargs)
Bases:
pybind11_objectOverloaded function.
__init__(self: wpilib.simulation._simulation.SolenoidSim, moduleSim: wpilib.simulation._simulation.PneumaticsBaseSim, channel: typing.SupportsInt | typing.SupportsIndex) -> None
__init__(self: wpilib.simulation._simulation.SolenoidSim, module: typing.SupportsInt | typing.SupportsIndex, type: wpilib._wpilib.PneumaticsModuleType, channel: typing.SupportsInt | typing.SupportsIndex) -> None
__init__(self: wpilib.simulation._simulation.SolenoidSim, type: wpilib._wpilib.PneumaticsModuleType, channel: typing.SupportsInt | typing.SupportsIndex) -> None
- getModuleSim() wpilib.simulation._simulation.PneumaticsBaseSim
- getOutput() bool
- registerOutputCallback(callback: collections.abc.Callable[[str, hal._wpiHal.Value], None], initialNotify: bool) wpilib.simulation._simulation.CallbackStore
Register a callback to be run when the output of this solenoid has changed.
- Parameters:
callback – the callback
initialNotify – whether to run the callback with the initial state
- Returns:
the
CallbackStoreobject associated with this callback. Save a reference to this object; it being deconstructed cancels the callback.
- setOutput(output: bool) None