code/WPILib/SensorBase.cpp
/**
 * Check that the digital channel number is valid.
 * Verify that the channel number is one of the legal channel numbers. Channel numbers are
 * 1-based.
 */
Check that the digital channel number is valid.
Verify that the channel number is one of the legal channel numbers. Channel numbers are
1-based.
Check that the digital channel number is valid . Verify that the channel number is one of the legal channel numbers . Channel numbers are 1 - based .
bool SensorBase::CheckPWMChannel(UINT32 channel)
{
	if (channel > 0 && channel <= kPwmChannels)
		return true;
	wpi_fatal(IndexOutOfRange);
	return false;
}
bool SensorBase :: CheckPWMChannel ( UINT32 channel ) { if ( channel > 0 && channel <= kPwmChannels ) return true ; wpi_fatal ( IndexOutOfRange ) ; return false ; }
Check that the digital channel number is valid.
Check that the digital channel number is valid .