code/WPILib/Counter.cpp
/**
 * Set the Counter to return reversed sensing on the direction.
 * This allows counters to change the direction they are counting in the case of 1X and 2X
 * quadrature encoding only. Any other counter mode isn't supported.
 * @param reverseDirection true if the value counted should be negated.
 */
Set the Counter to return reversed sensing on the direction.
This allows counters to change the direction they are counting in the case of 1X and 2X
quadrature encoding only. Any other counter mode isn't supported.
@param reverseDirection true if the value counted should be negated.
Set the Counter to return reversed sensing on the direction . This allows counters to change the direction they are counting in the case of 1X and 2X quadrature encoding only . Any other counter mode isn ' t supported . @param reverseDirection true if the value counted should be negated .
void Counter::SetReverseDirection(bool reverseDirection)
{
	if (m_counter->readConfig_Mode(&status) == kExternalDirection)
	{
		if (reverseDirection)
			SetDownSourceEdge(true, true);
		else
			SetDownSourceEdge(false, true);
	}
}
void Counter :: SetReverseDirection ( bool reverseDirection ) { if ( m_counter -> readConfig_Mode ( & status ) == kExternalDirection ) { if ( reverseDirection ) SetDownSourceEdge ( true , true ) ; else SetDownSourceEdge ( false , true ) ; } }
Set the Counter to return reversed sensing on the direction.
Set the Counter to return reversed sensing on the direction .