Quote:
Originally Posted by Ether
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.