mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Removed analog and digital module numbers
AnalogModule and DigitalModule classes still exist, at least until they are refactored into the classes that use them. Change-Id: I5544d5418822f19d54ba0a5d651e64fad8b7b10d
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
|
||||
const uint32_t SensorBase::kDigitalChannels;
|
||||
const uint32_t SensorBase::kAnalogInputs;
|
||||
const uint32_t SensorBase::kAnalogModules;
|
||||
const uint32_t SensorBase::kDigitalModules;
|
||||
const uint32_t SensorBase::kSolenoidChannels;
|
||||
const uint32_t SensorBase::kSolenoidModules;
|
||||
const uint32_t SensorBase::kPwmChannels;
|
||||
@@ -66,50 +64,6 @@ void SensorBase::DeleteSingletons()
|
||||
m_singletonList = NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that the analog module number is valid.
|
||||
*
|
||||
* @return Analog module is valid and present
|
||||
*/
|
||||
bool SensorBase::CheckAnalogModule(uint8_t moduleNumber)
|
||||
{
|
||||
if (nLoadOut::getModulePresence(nLoadOut::kModuleType_Analog, moduleNumber - 1))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that the digital module number is valid.
|
||||
*
|
||||
* @return Digital module is valid and present
|
||||
*/
|
||||
bool SensorBase::CheckDigitalModule(uint8_t moduleNumber)
|
||||
{
|
||||
if (nLoadOut::getModulePresence(nLoadOut::kModuleType_Digital, moduleNumber - 1))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that the digital module number is valid.
|
||||
*
|
||||
* @return Digital module is valid and present
|
||||
*/
|
||||
bool SensorBase::CheckPWMModule(uint8_t moduleNumber)
|
||||
{
|
||||
return CheckDigitalModule(moduleNumber);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that the digital module number is valid.
|
||||
*
|
||||
* @return Digital module is valid and present
|
||||
*/
|
||||
bool SensorBase::CheckRelayModule(uint8_t moduleNumber)
|
||||
{
|
||||
return CheckDigitalModule(moduleNumber);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that the solenoid module number is valid.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user