|
Re: Autonomus timed tasks
All three of these options are workable solutions to the task at hand.
I'll acknowledge, as Joe pointed out, that a state machine may not be the most convenient way, but depending on how you trigger state changes, it is actually a very useful and effective way to program autonomous. In fact, last year we had four different autonomous modes, each was it's own state machine. It worked great.
Joe's suggestion to follow the "Step 5 - Turn on Autonomous Mode" on FRCMastery.com is an excellent and simple way to make autonomous work.
Alan's suggestion to use a Flat Sequence is almost exactly the same approach as the timed loops show in Joe's suggestion, just implemented a slightly different way.
Learn all three methods and you will be prepared for almost any Autonomous challenge, and many other challenges as well.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
|