RobotCasserole1736 / RobotCasserole2020

Software for Robot Casserole's 2020 FIRST Infinite Recharge competition season
MIT License
1 stars 0 forks source link

Split out the PID controller state from the OK to shoot state #76

Closed gerth2 closed 4 years ago

gerth2 commented 4 years ago

Not 100% sure if needed yet, so keep it on a development branch and merge only if needed.

Remove the public getter for shooter control mode. Control mode (PID gain switching) will remain, but become an internal state of shooter. No other subsystem should reference it.

Add a new calibration for "allowable error for taking a shot". Calculate the errror and a boolean that says "shot allowed" or "shot forbidden". Pass this out through a public getter isShotAllowed().

Replace all outside usages of shooter control mode with this new public getter.

Treecko120 commented 4 years ago

Not really relevant any more.