View Single Post
  #8   Spotlight this post!  
Unread 08-10-2016, 19:10
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 230
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: Roborio CPU what is resonable

Quote:
Originally Posted by adciv View Post
We use LabView and typically have a decent amount of code running on our robot. According to the log viewer, our CPU usage was 55% when not enabled and 65-70% when enabled. This was with our vision processing code running on the RIO. I suspect the increase in tele was due to us having the "devref get" active in our teleop section of code when it really only needs to run once.

I'm not familiar with the FRC Java API, but I do have some questions for you based on what I can read.
1) How often are your PID loops running? (in ms or hz)
2) How often are you updating Smart Dashboard? (in ms or hz)
I found two PID's set to .001 ms period. Changed to .002 made a difference. Shouldn't it be more like .02 ms? Maybe .01 ms?

How do we control Smart Dashboard updates?
Reply With Quote