|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#7
|
||||
|
||||
|
Re: Robot Scan Time
The time elapsed is going to be approximately 20ms, but it will fluctuate depending on network latencies.
Just perform the calculation each time through the loop. Code:
currentTime = Timer.getFPGATimestamp(); //time in seconds elapsedTime = currentTime - lastTime; //do your math lastTime = currentTime; Last edited by otherguy : 19-01-2016 at 19:31. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|