View Single Post
  #10   Spotlight this post!  
Unread 17-03-2010, 14:24
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: encoder for cam-driven kicker?

Quote:
Originally Posted by Ether View Post
What is the data type of the encoder counter in the FPGA? Is it large enough to just let it run free without overflowing during a match ?


~
The data type is double, at least in LabVIEW.

You can always convert the encoder output into degrees and do:

Code:
if (encoderDeg > 360)
 {
   encoderDeg -= 360;
}
or the LabVIEW equivalent so you don't have to worry about overflow. Then you can always stop the motor at the same angle.
__________________
-
An ounce of perception is worth a pound of obscure.
Reply With Quote