code/WPILib/Counter.cpp
/**
 * Configure the counter to count in up or down based on the length of the input pulse.
 * This mode is most useful for direction sensitive gear tooth sensors.
 * @param threshold The pulse length beyond which the counter counts the opposite direction.  Units are seconds.
 */
Configure the counter to count in up or down based on the length of the input pulse.
This mode is most useful for direction sensitive gear tooth sensors.
@param threshold The pulse length beyond which the counter counts the opposite direction.  Units are seconds.
Configure the counter to count in up or down based on the length of the input pulse . This mode is most useful for direction sensitive gear tooth sensors . @param threshold The pulse length beyond which the counter counts the opposite direction . Units are seconds .
void Counter::SetPulseLengthMode(float threshold)
{
	m_counter->writeConfig_Mode(kPulseLength, &status);
	m_counter->writeConfig_PulseLengthThreshold((UINT32)(threshold * 1.0e6) * kSystemClockTicksPerMicrosecond, &status);
	wpi_assertCleanStatus(status);
}
void Counter :: SetPulseLengthMode ( float threshold ) { m_counter -> writeConfig_Mode ( kPulseLength , & status ) ; m_counter -> writeConfig_PulseLengthThreshold ( ( UINT32 ) ( threshold * 1.0e6 ) * kSystemClockTicksPerMicrosecond , & status ) ; wpi_assertCleanStatus ( status ) ; }
Configure the counter to count in up or down based on the length of the input pulse.
Configure the counter to count in up or down based on the length of the input pulse .