Stores most recent status information as well as containing utility functions for checking channels and error processing.
More...
#include <wpi/util/SensorUtil.hpp>
Stores most recent status information as well as containing utility functions for checking channels and error processing.
◆ SensorUtil()
| wpi::SensorUtil::SensorUtil |
( |
| ) |
|
|
delete |
◆ CheckAnalogInputChannel()
| bool wpi::SensorUtil::CheckAnalogInputChannel |
( |
int | channel | ) |
|
|
static |
Check that the analog input number is value.
Verify that the analog input number is one of the legal channel numbers. Channel numbers are 0-based.
- Returns
- Analog channel is valid
◆ CheckDigitalChannel()
| bool wpi::SensorUtil::CheckDigitalChannel |
( |
int | channel | ) |
|
|
static |
Check that the digital channel number is valid.
Verify that the channel number is one of the legal channel numbers. Channel numbers are 0-based.
- Returns
- Digital channel is valid
◆ CheckPWMChannel()
| bool wpi::SensorUtil::CheckPWMChannel |
( |
int | channel | ) |
|
|
static |
Check that the PWM channel number is valid.
Verify that the channel number is one of the legal channel numbers. Channel numbers are 0-based.
- Returns
- PWM channel is valid
◆ GetDefaultCTREPCMModule()
| int wpi::SensorUtil::GetDefaultCTREPCMModule |
( |
| ) |
|
|
static |
Get the number of the default solenoid module.
- Returns
- The number of the default solenoid module.
◆ GetDefaultREVPHModule()
| int wpi::SensorUtil::GetDefaultREVPHModule |
( |
| ) |
|
|
static |
Get the number of the default solenoid module.
- Returns
- The number of the default solenoid module.
◆ GetNumAnalogInputs()
| int wpi::SensorUtil::GetNumAnalogInputs |
( |
| ) |
|
|
static |
◆ GetNumDigitalChannels()
| int wpi::SensorUtil::GetNumDigitalChannels |
( |
| ) |
|
|
static |
◆ GetNumPwmChannels()
| int wpi::SensorUtil::GetNumPwmChannels |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: