|
Re: Programming Autonomous pneumatic kicker
Quote:
Originally Posted by archwaykitten
I am trying to make a very similar state machine kicker myself.
My problem is this: Say you tell your program to "wait" in a particular state for two seconds while a piston extends... I would expect the rest of your program to "freeze" for two seconds while that state machine code waits to execute. We want to be able to continue driving around and entering comands while our ball kicker state machine does its thing.
|
The key is to have the vi run parallel to all other process. This way the other process, ie teleop.vi, do not have to wait for the kicker to cycle. We did this by placing the kicker state mchine in the main.vi. (See the attached picture) It requires no input from any other processes to complete, therefore it runs immediately. It also doesn't output any information that other vis need.
__________________
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
Last edited by billbo911 : 06-03-2010 at 21:48.
|