Uses the fixed SensorBase functionality in the WPILib (#185)

This commit is contained in:
Thad House
2016-07-21 23:24:06 -07:00
committed by Peter Johnson
parent 8da577b56f
commit a831978cce
10 changed files with 68 additions and 31 deletions

View File

@@ -73,7 +73,7 @@ bool SensorBase::CheckPWMChannel(int channel) {
*
* @return Analog channel is valid
*/
bool SensorBase::CheckAnalogInput(int channel) {
bool SensorBase::CheckAnalogInputChannel(int channel) {
if (channel >= 0 && channel < kAnalogInputs) return true;
return false;
}
@@ -86,7 +86,7 @@ bool SensorBase::CheckAnalogInput(int channel) {
*
* @return Analog channel is valid
*/
bool SensorBase::CheckAnalogOutput(int channel) {
bool SensorBase::CheckAnalogOutputChannel(int channel) {
if (channel >= 0 && channel < kAnalogOutputs) return true;
return false;
}