View Single Post
  #3   Spotlight this post!  
Unread 17-03-2010, 15:09
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: encoder for cam-driven kicker?

Quote:
Originally Posted by Chris Hibner View Post
The data type is double, at least in LabVIEW.
Yeah, but I doubt that the counter in the FPGA is floating-point.

I want to know if the FPGA counter will not overflow during a match.

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

Code:
if (encoderDeg > 360)
 {
   encoderDeg -= 360;
}

Does the above code actually write a new value to the FPGA counter itself? Or just zero the associated RAM variable in cRIO?


~
Reply With Quote