Class SensorUtil
java.lang.Object
org.wpilib.system.SensorUtil
Stores most recent status information as well as containing utility functions for checking
channels and error processing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNumber of PCM Modules.static final intNumber of power distribution channels per PDP.static final intNumber of power distribution modules per PDP.static final intNumber of solenoid channels per module.static final intNumber of power distribution channels per PH.static final intNumber of PH modules.static final intNumber of SmartIo Ports. -
Method Summary
Modifier and TypeMethodDescriptionstatic intGet the number of the default solenoid module.static intGet the number of the default solenoid module.
-
Field Details
-
SMART_IO_PORTS
public static final int SMART_IO_PORTSNumber of SmartIo Ports. -
NUM_CTRE_SOLENOID_CHANNELS
public static final int NUM_CTRE_SOLENOID_CHANNELSNumber of solenoid channels per module. -
NUM_CTRE_PDP_CHANNELS
public static final int NUM_CTRE_PDP_CHANNELSNumber of power distribution channels per PDP. -
NUM_CTRE_PDP_MODULES
public static final int NUM_CTRE_PDP_MODULESNumber of power distribution modules per PDP. -
NUM_CTRE_PCM_MODULES
public static final int NUM_CTRE_PCM_MODULESNumber of PCM Modules. -
NUM_REV_PH_CHANNELS
public static final int NUM_REV_PH_CHANNELSNumber of power distribution channels per PH. -
NUM_REV_PH_MODULES
public static final int NUM_REV_PH_MODULESNumber 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.
-