View Single Post
  #2   Spotlight this post!  
Unread 26-12-2008, 18:24
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Question about QuadEncoders [C++]

from Encoder.cpp:
Code:
/**
 * Gets the current count.
 * Returns the current count on the QuadEncoder.
 * @return Current count from the QuadEncoder.
 */
INT32 Encoder::Get(void)
{
	INT32 value = m_encoder->readOutput_Value(&status);
	wpi_assertCleanStatus(status);
	return value;
}
It returns the number of pulses received since the encoder was initialized or the count was reset.

Your other option is GetPeriod, which:
"Returns the period of the most recent Quad Encoder pulse in microseconds."