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