public abstract class SensorBase extends SendableBase
Modifier and Type | Field and Description |
---|---|
static int |
kAnalogInputChannels
Number of analog input channels per roboRIO.
|
static int |
kAnalogOutputChannels
Number of analog output channels per roboRIO.
|
static int |
kDigitalChannels
Number of digital channels per roboRIO.
|
static int |
kPCMModules
Number of PCM Modules.
|
static int |
kPDPChannels
Number of power distribution channels per PDP.
|
static int |
kPDPModules
Number of power distribution modules per PDP.
|
static int |
kPwmChannels
Number of PWM channels per roboRIO.
|
static int |
kRelayChannels
Number of relay channels per roboRIO.
|
static int |
kSolenoidChannels
Number of solenoid channels per module.
|
static int |
kSystemClockTicksPerMicrosecond
Ticks per microsecond.
|
Constructor and Description |
---|
SensorBase() |
Modifier and Type | Method and Description |
---|---|
static void |
checkAnalogInputChannel(int channel)
Check that the analog input number is value.
|
static void |
checkAnalogOutputChannel(int channel)
Check that the analog input number is value.
|
static void |
checkDigitalChannel(int channel)
Check that the digital channel number is valid.
|
static void |
checkPDPChannel(int channel)
Verify that the power distribution channel number is within limits.
|
static void |
checkPDPModule(int module)
Verify that the PDP module number is within limits.
|
static void |
checkPWMChannel(int channel)
Check that the digital channel number is valid.
|
static void |
checkRelayChannel(int channel)
Check that the digital channel number is valid.
|
static void |
checkSolenoidChannel(int channel)
Verify that the solenoid channel number is within limits.
|
static void |
checkSolenoidModule(int moduleNumber)
Verify that the solenoid module is correct.
|
static int |
getDefaultSolenoidModule()
Get the number of the default solenoid module.
|
static void |
setDefaultSolenoidModule(int moduleNumber)
Set the default location for the Solenoid module.
|
addChild, free, getName, getSubsystem, setName, setName, setName, setSubsystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initSendable, setName
public static final int kSystemClockTicksPerMicrosecond
public static final int kDigitalChannels
public static final int kAnalogInputChannels
public static final int kAnalogOutputChannels
public static final int kSolenoidChannels
public static final int kPwmChannels
public static final int kRelayChannels
public static final int kPDPChannels
public static final int kPDPModules
public static final int kPCMModules
public SensorBase()
public static void setDefaultSolenoidModule(int moduleNumber)
moduleNumber
- The number of the solenoid module to use.public static void checkSolenoidModule(int moduleNumber)
moduleNumber
- The solenoid module module number to check.public static void checkDigitalChannel(int channel)
channel
- The channel number to check.public static void checkRelayChannel(int channel)
channel
- The channel number to check.public static void checkPWMChannel(int channel)
channel
- The channel number to check.public static void checkAnalogInputChannel(int channel)
channel
- The channel number to check.public static void checkAnalogOutputChannel(int channel)
channel
- The channel number to check.public static void checkSolenoidChannel(int channel)
channel
- The channel number to check.public static void checkPDPChannel(int channel)
channel
- The channel number to check.public static void checkPDPModule(int module)
module
- The module number to check.public static int getDefaultSolenoidModule()