class wpilib.simulation.SolenoidSim(*args, **kwargs)

Bases: pybind11_object

Overloaded function.

  1. __init__(self: wpilib.simulation._simulation.SolenoidSim, moduleSim: wpilib.simulation._simulation.PneumaticsBaseSim, channel: int) -> None

  2. __init__(self: wpilib.simulation._simulation.SolenoidSim, module: int, type: wpilib._wpilib.PneumaticsModuleType, channel: int) -> None

  3. __init__(self: wpilib.simulation._simulation.SolenoidSim, type: wpilib._wpilib.PneumaticsModuleType, channel: int) -> None

getModuleSim() wpilib.simulation._simulation.PneumaticsBaseSim
getOutput() bool
registerOutputCallback(callback: Callable[[str, HAL_Value], None], initialNotify: bool) wpilib.simulation._simulation.CallbackStore

Register a callback to be run when the output of this solenoid has changed.

  • callback – the callback

  • initialNotify – whether to run the callback with the initial state


the {@link CallbackStore} object associated with this callback. Save a reference to this object; it being deconstructed cancels the callback.

setOutput(output: bool) None