|
Stay in "Search-Begin" while disabled?
OK, here's the situation. Whenever the robot is booted and running, our camera code is running regardless of the state we are in, or the mode. We are using the Two Color Tracking vi. as the basis for our camera tracking code. So far it works really well. We have one "feature" we would like to add to the code.
What we want to be able to do is hold, or lock, the Gimbel tracking state machine in the "Begin-Search" mode whenever the robot is disabled, both Autonomous disabled and Teleop disabled.
Currently, if you watch the front panel indicators for the X and Y servo positions, they continue the "Searching" pattern even when disabled, though the servos them selves are not moving, eaxactly as you would expect.
What we want to do is: Whenever disabled, have the tracking code stay in the "Begin-Search" mode until the robot is enabled. As it currently works, the camera will jump to whatever position the code is at when the robot is transitioned from disabled to enabled. Being that we will have no control over when this will happen during competition, we have varying results in how our robot responds during autonomous.
Any clues on how to "hold" the state machine in one state during "Disabled" would be greatly appreciated.
__________________
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
|