Finger-Puppet-Mafia-FTC-Team / robot-controller

Robot Controller
0 stars 0 forks source link

Reusable classes #2

Open zodern opened 9 years ago

zodern commented 9 years ago

There is some non trivial code that would be nice to have a reusable class for. This will be a running list of ideas.

zodern commented 9 years ago

Using a game pad button to toggle a function. If it is held down longer than 1 loop cycle, it will be toggled more than once, meaning it would appear to not have been toggled. The class should make sure there has been at least one loop cycle with the key up before toggling again.

zodern commented 9 years ago

Handle if a piece of hardware is not detected and send a message using telemetry to the driver station. This should be done before the instructions are sent as suggested in #3 .