code/WPILib/AnalogTrigger.cpp
/**
 * Set the upper and lower limits of the analog trigger.
 * The limits are given in ADC codes.  If oversampling is used, the units must be scaled
 * appropriately.
 */
Set the upper and lower limits of the analog trigger.
The limits are given in ADC codes.  If oversampling is used, the units must be scaled
appropriately.
Set the upper and lower limits of the analog trigger . The limits are given in ADC codes . If oversampling is used the units must be scaled appropriately .
void AnalogTrigger::SetLimitsRaw(INT32 lower, INT32 upper)
{
	if (lower > upper)
	{
		wpi_fatal(AnalogTriggerLimitOrderError);
	}
	m_trigger->writeLowerLimit(lower, &status);
	m_trigger->writeUpperLimit(upper, &status);
	wpi_assertCleanStatus(status);
}
void AnalogTrigger :: SetLimitsRaw ( INT32 lower , INT32 upper ) { if ( lower > upper ) { wpi_fatal ( AnalogTriggerLimitOrderError ) ; } m_trigger -> writeLowerLimit ( lower , & status ) ; m_trigger -> writeUpperLimit ( upper , & status ) ; wpi_assertCleanStatus ( status ) ; }
Set the upper and lower limits of the analog trigger.
Set the upper and lower limits of the analog trigger .