FRCTeam3206 / Electrical

Container for Electrical team. Includes to-do, issues, shopping, coordination and communication.
3 stars 1 forks source link

Introduce step delays to autonomous mode #33

Closed runswithd6s closed 4 years ago

runswithd6s commented 4 years ago

Rather than delaying in switch statement for each STATE, make each "state" a function that returns whether or not it is currently "running" based on elapsed time. If a state function returns 0, call a function to set the next state and reset the elapsed timer. End with stopped bot, ready for teleop.