Class SensorUtil

java.lang.Object
org.wpilib.system.SensorUtil

public final class SensorUtil extends Object
Stores most recent status information as well as containing utility functions for checking channels and error processing.
  • Field Details

    • kSmartIoPorts

      public static final int kSmartIoPorts
      Number of SmartIo Ports.
    • NUM_CTRE_SOLENOID_CHANNELS

      public static final int NUM_CTRE_SOLENOID_CHANNELS
      Number of solenoid channels per module.
    • NUM_CTRE_PDP_CHANNELS

      public static final int NUM_CTRE_PDP_CHANNELS
      Number of power distribution channels per PDP.
    • NUM_CTRE_PDP_MODULES

      public static final int NUM_CTRE_PDP_MODULES
      Number of power distribution modules per PDP.
    • NUM_CTRE_PCM_MODULES

      public static final int NUM_CTRE_PCM_MODULES
      Number of PCM Modules.
    • NUM_REV_PH_CHANNELS

      public static final int NUM_REV_PH_CHANNELS
      Number of power distribution channels per PH.
    • NUM_REV_PH_MODULES

      public static final int NUM_REV_PH_MODULES
      Number of PH modules.
  • Method Details

    • getDefaultCTREPCMModule

      public static int getDefaultCTREPCMModule()
      Get the number of the default solenoid module.
      Returns:
      The number of the default solenoid module.
    • getDefaultREVPHModule

      public static int getDefaultREVPHModule()
      Get the number of the default solenoid module.
      Returns:
      The number of the default solenoid module.