Quote:
Originally Posted by Hsifeulbhsifder
Thank you,
Although, what would occur if you set the main loop's frequency to something high like 200, would that affect control of the robot in anyway?
|
The main issue would be that you could do less each iteration. With a 50Hz rep rate, you get 20
0ms to do what you have to do. With a 200ms rate, you only get 5
0ms. It's also entirely possible that the 50Hz rate is controlled by a hardware timer; I'm not familiar with the internals.
And I concur with Alexander and Jared below that 50 Hz would not be noticeable lag from the controls, though higher rates would be in order for many PIDs and other sensor-driven activities.