View Single Post
  #2   Spotlight this post!  
Unread 27-12-2008, 11:54
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,972
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: Question about QuadEncoders [C++]

Quote:
Originally Posted by beefy1 View Post
well, but what happened if I change the direction, will the Get function give me the duplication of ticks or maybe the distance it passed?
Get Encoder does not get "ticks". It reads the number of counts from it's initialization/last reset. As the encoder turns in its forward direction it increases the encoder counts, as it turns in its reverse direction it decreases the encoder counts (even going negative).

I am not sure if GetPeriod will return a negative encoder period or not.
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses