![]() |
Robot Scan Time
I am trying to find the scan time of my robot. As in how long the gap is in between each command processed by the robot itself.
Thanks in advance. |
Re: Robot Scan Time
What language are you using? In LabVIEW you can set custom loop times, and in Java/C++ the loop interval for the scheduler is defaulted to 20ms (noted here: https://wpilib.screenstepslive.com/s...d-programming).
|
Re: Robot Scan Time
Quote:
|
Re: Robot Scan Time
We are using java to program our robot and we would like to know the scan time if the scan time were ever to fluctuate.
|
Re: Robot Scan Time
Quote:
|
Re: Robot Scan Time
We want to have acceleration for our drive train.
My idea was to increase the speed of a motor at a constant rate multiplied by the scan time of the robot. Code:
if(maxSpeed > currentSpeed) |
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 |
Re: Robot Scan Time
Thank you all for your help!
-3098 |
| All times are GMT -5. The time now is 10:11. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi