code/WPILib/SensorBase.cpp
/**
 * Check that the analog module number is valid.
 * Module numbers are the slot numbers that they are inserted in.
 */
Check that the analog module number is valid.
Module numbers are the slot numbers that they are inserted in.
Check that the analog module number is valid . Module numbers are the slot numbers that they are inserted in .
bool SensorBase::CheckAnalogModule(UINT32 slot)
{
	if (slot <= kChassisSlots && modulePopulation[slot] == 9201)
		return true;
	wpi_fatal(IndexOutOfRange);
	return false;
}
bool SensorBase :: CheckAnalogModule ( UINT32 slot ) { if ( slot <= kChassisSlots && modulePopulation [ slot ] == 9201 ) return true ; wpi_fatal ( IndexOutOfRange ) ; return false ; }
Check that the analog module number is valid.
Check that the analog module number is valid .