View Single Post
  #11   Spotlight this post!  
Unread 07-03-2011, 12:38
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is online now
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,551
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: Question: how many encoders can be used on the robot?

Thanks for the clarification about the number of encoders you can declare with the different scale factors.

As far as getting rates from the encoders. We were able to get 4 rates by declaring 8 encoders 1,3,5 and 8 seemed to work for us. These were all declared at 2x. Encoders 2,4, and 6 were fake encoders that were assigned the digital inputs of limit switches that we were using for other things. Encoder 7 was used for our lift but we didn't need the rate from it. You may be able to get more rates by using the 4x encoders, but I am not sure. The best way is to just test them, when you get NaN as a rate you know that encoder declaration position won't work and just move on to the next one.
__________________

Team 647 | Cyber Wolf Corps | Alumni | 2003-2006 | Shoemaker HS
Team 2587 | DiscoBots | Mentor | 2008-2011 | Rice University / Houston Food Bank
Team 3847 | Spectrum | Coach | 2012-20... | St Agnes Academy
LRI | Alamo Regional | 2014-20...
"Competition has been shown to be useful up to a certain point and no further, but cooperation, which is the thing we must strive for today, begins where competition leaves off." - Franklin D. Roosevelt