code/WPILib/Counter.cpp
/**
 * Create an instance of a Counter object.
 * Create an instance of a simple up-Counter given an analog trigger.
 * Use the trigger state output from the analog trigger.
 */
Create an instance of a Counter object.
Create an instance of a simple up-Counter given an analog trigger.
Use the trigger state output from the analog trigger.
Create an instance of a Counter object . Create an instance of a simple up - Counter given an analog trigger . Use the trigger state output from the analog trigger .
Counter::Counter(AnalogTrigger *trigger)
{
	InitCounter();
	SetUpSource(trigger->CreateOutput(AnalogTriggerOutput::kState));
	ClearDownSource();
	m_allocatedUpSource = true;
}
Counter :: Counter ( AnalogTrigger * trigger ) { InitCounter ( ) ; SetUpSource ( trigger -> CreateOutput ( AnalogTriggerOutput :: kState ) ) ; ClearDownSource ( ) ; m_allocatedUpSource = true ; }
Create an instance of a Counter object.
Create an instance of a Counter object .