Quote:
Originally Posted by Chris Hibner
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?
~