Class SolenoidSim

java.lang.Object
edu.wpi.first.wpilibj.simulation.SolenoidSim

public class SolenoidSim
extends Object
Class to control a simulated Solenoid.
  • Constructor Details

    • SolenoidSim

      public SolenoidSim​(PneumaticsBaseSim moduleSim, int channel)
      Constructs for a solenoid on the given pneumatics module.
      Parameters:
      moduleSim - the PCM the solenoid is connected to.
      channel - the solenoid channel.
    • SolenoidSim

      public SolenoidSim​(int module, PneumaticsModuleType moduleType, int channel)
      Constructs for a solenoid on a pneumatics module of the given type and ID.
      Parameters:
      module - the CAN ID of the pneumatics module the solenoid is connected to.
      moduleType - the module type (PH or PCM)
      channel - the solenoid channel.
    • SolenoidSim

      public SolenoidSim​(PneumaticsModuleType moduleType, int channel)
      Constructs for a solenoid on a pneumatics module of the given type and default ID.
      Parameters:
      moduleType - the module type (PH or PCM)
      channel - the solenoid channel.
  • Method Details