Go to Post Like a moth to a flame, true FIRSTers are attracted by the Victor instead of the Banner. - Rich Wong [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2009, 16:12
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
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
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2009, 16:32
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Stay in "Search-Begin" while disabled?

I had something like this happen to me early on. The robot monitors all inputs, including the camera, so all your algorithms get messed up. What I do is disable vision completely when disabled, and set the servo positions to the middle. That way when the robot is enabled, everything is ready to go.

It seems like you want to still do camera stuff in disabled mode, though. Perhaps you can make the robot mode a global, and check for the "Disabled" mode in the Gimbel track vi. Just never let it go past that point until you are enabled.
__________________
Twitter Profile
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Announcing "Search FIRST" powered by Google Joe Troy General Forum 19 08-04-2008 18:16
When does "build season" begin? Madison General Forum 23 18-12-2007 02:05
Championship Event - Where the "Random" Match Sorting Really "Shines" Travis Hoffman Championship Event 57 19-04-2007 08:06
New NEMO White Papers! "Creating a Killer Packet" and "25 Ways to Sponsor" Jessica Boucher Team Organization 0 10-08-2005 10:55
"Thunderbirds" Vs. "Team America" Which one will rule the box office? Elgin Clock Chit-Chat 3 07-09-2004 19:53


All times are GMT -5. The time now is 10:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi