View Single Post
  #11   Spotlight this post!  
Unread 09-10-2016, 01:43
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,068
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Roborio CPU what is resonable

By default, SmartDashboard only actually sends new data every 100ms. It stores the data locally in the table before that time. Yes too many updated keys can be a problem, but in all honestly 50+ keys isn't bad at all, and many teams run many more keys.

The PIDController set to 1 ms is definitely a problem. Unless you are using CAN, PWM motor controllers can only update every 5 ms. So running much faster then that isn't actually helping much. Plus unless your code loops can handle that speed, or you are running a shooter wheel, even 5 ms is too fast. We usually recommend between 10 and 20 ms, as there is usually plenty of CPU power to run that, and most mechanical and control systems can't handle much faster then that anyway.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote