View Single Post
  #4   Spotlight this post!  
Unread 14-09-2015, 21:01
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,680
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Regarding Loop frequency

Quote:
Originally Posted by Hsifeulbhsifder View Post
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 200ms to do what you have to do. With a 200ms rate, you only get 50ms. 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.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.

Last edited by GeeTwo : 14-09-2015 at 22:30. Reason: oops - slipped a decimal point, added last paragraph.