Class DoubleSolenoidSim

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

public class DoubleSolenoidSim
extends Object
Class to control a simulated DoubleSolenoid.
  • Constructor Details

    • DoubleSolenoidSim

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

      public DoubleSolenoidSim​(int module, PneumaticsModuleType moduleType, int fwd, int rev)
      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)
      fwd - the forward solenoid channel.
      rev - the reverse solenoid channel.
    • DoubleSolenoidSim

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