public abstract class SensorBase extends Object
Modifier and Type | Field and Description |
---|---|
static int |
kAnalogInputChannels
Number of analog input channels
|
static int |
kAnalogOutputChannels
Number of analog output channels
|
static int |
kDigitalChannels
Number of digital channels per roboRIO
|
static int |
kPDPChannels
Number of power distribution channels
|
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 |
kSolenoidModules
Number of solenoid modules
|
static int |
kSystemClockTicksPerMicrosecond
Ticks per microsecond
|
Constructor and Description |
---|
SensorBase()
Creates an instance of the sensor base and gets an FPGA handle
|
Modifier and Type | Method and Description |
---|---|
protected static void |
checkAnalogInputChannel(int channel)
Check that the analog input number is value.
|
protected static void |
checkAnalogOutputChannel(int channel)
Check that the analog input number is value.
|
protected static void |
checkDigitalChannel(int channel)
Check that the digital channel number is valid.
|
protected static void |
checkPDPChannel(int channel)
Verify that the power distribution channel number is within limits.
|
protected static void |
checkPWMChannel(int channel)
Check that the digital channel number is valid.
|
protected static void |
checkRelayChannel(int channel)
Check that the digital channel number is valid.
|
protected static void |
checkSolenoidChannel(int channel)
Verify that the solenoid channel number is within limits.
|
protected static void |
checkSolenoidModule(int moduleNumber)
Verify that the solenoid module is correct.
|
void |
free()
Free the resources used by this object
|
static int |
getDefaultSolenoidModule()
Get the number of the default solenoid module.
|
static void |
setDefaultSolenoidModule(int moduleNumber)
Set the default location for the Solenoid module.
|
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 kSolenoidModules
public static final int kPwmChannels
public static final int kRelayChannels
public static final int kPDPChannels
public SensorBase()
public static void setDefaultSolenoidModule(int moduleNumber)
moduleNumber
- The number of the solenoid module to use.protected static void checkSolenoidModule(int moduleNumber)
moduleNumber
- The solenoid module module number to check.protected static void checkDigitalChannel(int channel)
channel
- The channel number to check.protected static void checkRelayChannel(int channel)
channel
- The channel number to check.protected static void checkPWMChannel(int channel)
channel
- The channel number to check.protected static void checkAnalogInputChannel(int channel)
channel
- The channel number to check.protected static void checkAnalogOutputChannel(int channel)
channel
- The channel number to check.protected static void checkSolenoidChannel(int channel)
channel
- The channel number to check.protected static void checkPDPChannel(int channel)
channel
- The channel number to check.public static int getDefaultSolenoidModule()
public void free()
Copyright © 2015. All rights reserved.