RobotCasserole1736 / RobotCasserole2017

Robot Casserole robot source code for the 2017 FRC game, First Steamworks.
MIT License
0 stars 0 forks source link

Add loop frequency consistancy metric #117

Closed gerth2 closed 7 years ago

gerth2 commented 7 years ago

our main control loop is supposed to run every 20 ms - however, sometimes it doesn't. I'd like to log how much it deviates from 20ms.

Calculate the delta between the start of the previous loop, and the start of this loop (during both teleop and auto) - some of these variables exist already.

Add a new field to the logger which is this delta, minus 20 ms. this should give us a good way to track when the timing on the RIO goes sideways.

schmizr19 commented 7 years ago

Finished this issue on branch: ZoeLoopExDev