Fix SensorUtil issues (#1194)

C++ PDP was missing module check, and channel check called module.
Java docs said 1 based instead of 0 based.
This commit is contained in:
Thad House
2018-07-28 09:51:49 -07:00
committed by Peter Johnson
parent bbb622aaa6
commit 1d9ed8f458
2 changed files with 21 additions and 4 deletions

View File

@@ -58,5 +58,9 @@ bool SensorUtil::CheckSolenoidChannel(int channel) {
}
bool SensorUtil::CheckPDPChannel(int channel) {
return HAL_CheckPDPModule(channel);
return HAL_CheckPDPChannel(channel);
}
bool SensorUtil::CheckPDPModule(int module) {
return HAL_CheckPDPModule(module);
}