View Single Post
  #2   Spotlight this post!  
Unread 02-09-2016, 09:50 PM
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is online now
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,033
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: Update rate of commands

Quote:
Originally Posted by axiomofdarkness View Post
How often is the "Execute" method run on commands in command-based? We are trying to do something which relies on sensor and motor controller values being updated at a constant rate. I am worried that these methods will be called at irregular intervals. So if there is a set rate at which they are called, what is it? And if they are called irregularly, how might I go about ensuring that this information is updated at a regular rate? We are using C++, if it matters.
Each execute method should be called approximately every 20ms. This can vary a few ms in either direction though.
Reply With Quote