FRC701 / valkyrie

Deep Space -- Presented by Boeing FRC 2019
0 stars 0 forks source link

HatchIntake::GetEncoderFromAngle always reads preferences #86

Open duane701 opened 5 years ago

duane701 commented 5 years ago

HatchIntake::GetEncoderFromAngle() could be (very) slow as preferences are read on every call.

Work out a system for caching the angle and slope so that preferences are not regularly read.

Be sure to catch re-calibration and to reset the cached values.