Quote:
Originally Posted by adciv
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?