BitBucketsFRC4183 / FRC2020_Infinite_Recharge

Team 4183's repository for our Infinite Recharge robot's code
5 stars 10 forks source link

Clean Up Shuffleboard #253

Open cpostbitbuckets opened 4 years ago

cpostbitbuckets commented 4 years ago

We have SmartDashboard.put() and SmartDashboard.get() commands all over the codebase. We need to minimize those and move the various puts into a telemetryEnabled block.

We should move as many gets into dashboardPeriodic() as we can, and store the results in instance fields instead of querying them every time. Also, we need to limit the number of network tables calls we make during a loop. We should only query the smartdashboard every second instead of 50 times a second.

Tr1ll10ns commented 4 years ago

"Also, we need to limit the number of network tables calls we make during a loop. We should only query the smartdashboard every second instead of 50 times a second." DELTA TIME CLOCK YEEEEEEEAAAAAAAAAAAAAAAAH!!!