Go to Post Team newb: To expect any average group of high schoolers to build and develop a robot in less than six weeks is...madness! Me: Madness? THIS IS FIRST! Newb: Yeah, I just walked into the Pit of Death with that one. - MishraArtificer [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2008, 06:57
EE_I_B EE_I_B is offline
Registered User
AKA: Scott Johnson
FRC #2469 (Idabel)
Team Role: Engineer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Idabel, OK
Posts: 2
EE_I_B is infamous around these partsEE_I_B is infamous around these partsEE_I_B is infamous around these parts
Rookie Team - Autonomous Mode Question

Help!, From reading the docs I see where the competition port pins 5-to-8 "allows" the autonomous_mode to be entered. From what I see, it "forces" the variable autonomous_mode.

From searching all the posts here, I can't seem to find any post that confirms what I am seeing.

The actual question is, "Do I have to do anything, or do I just place code in the "user_autonomous" part of the user fast c file. THEN, during competition, the system will close pins 5 to 8 for the first 15 seconds?

THANKS!!
Scott
  #2   Spotlight this post!  
Unread 06-02-2008, 07:33
sloteera's Avatar
sloteera sloteera is offline
Registered User
AKA: Rafa
FRC #1860 (Cephatron)
Team Role: Coach
 
Join Date: Mar 2007
Rookie Year: 2004
Location: Brazil
Posts: 190
sloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud of
Re: Rookie Team - Autonomous Mode Question

If you want to test your autonomous, you just need place a wire in pin 8 and pin 5 (Pin 8 is a GND and Pin 5 is AUTONOMOUS MODE, active in nivel logic 0)

When you place the wire, automatically the routine of autonomous mode will start.

Good luck =)
  #3   Spotlight this post!  
Unread 06-02-2008, 09:45
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,735
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Rookie Team - Autonomous Mode Question

In addition to what was already posted, during the competition you don't need to do anything to put the robot into autonomous mode - they have a hook up for the competition port, and they'll put your robot into autonomous mode, so any code you put in user_autonomous will execute until they switch it into the user operated mode.
  #4   Spotlight this post!  
Unread 06-02-2008, 10:14
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Re: Rookie Team - Autonomous Mode Question

It is highly recommended that every team builds a disable switch similar to
http://www.andymark.biz/am-0016.html

You can easily switch your robot from manual mode to auto mode. Then if you need to disable your robot without having to fumble with the power cord
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
  #5   Spotlight this post!  
Unread 06-02-2008, 10:37
IndySam's Avatar
IndySam IndySam is offline
Registered User
FRC #0829 (Digital Goats)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Indy
Posts: 3,347
IndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond repute
Re: Rookie Team - Autonomous Mode Question

Quote:
Originally Posted by Gamer930 View Post
It is highly recommended that every team builds a disable switch similar to
http://www.andymark.biz/am-0016.html

You can easily switch your robot from manual mode to auto mode. Then if you need to disable your robot without having to fumble with the power cord
Not only that but the emergency stop switch is great to have while testing autonomous.

We love our AM selector switch.
__________________
"Champions are champions not because they do anything extraordinary but because they do the ordinary things better than anyone else." —Chuck Knoll


2015 Indianapolis District Winner
2014 Boilermaker Regional Industrial Design Award
2013 Smoky Mountain Regional Industrial Design Award
2012 Boilermaker Engineering Excellence Award
2010 Boilermaker Rockwell Innovation in Control Award.
2009 Buckeye J&J Gracious Professionalism Award
2009 Boilermaker J&J Gracious Professionalism Award
2008 Boilermaker J&J Gracious Professionalism Award
2007 St Louis Regional Winners
  #6   Spotlight this post!  
Unread 06-02-2008, 10:48
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Rookie Team - Autonomous Mode Question

Quote:
Originally Posted by Gamer930 View Post
It is highly recommended that every team builds a disable switch...
We incorporated disable and auto/teleop switches into our operator console last year. It's very convenient not to have to worry about misplacing a standalone dongle. I'm sure this year's console will have the same feature.
  #7   Spotlight this post!  
Unread 06-02-2008, 12:16
DayZiro DayZiro is offline
Registered User
FRC #2518
 
Join Date: Jan 2008
Location: Minnesota
Posts: 5
DayZiro is an unknown quantity at this point
Re: Rookie Team - Autonomous Mode Question

My team (2518) is a rookie team and we decided to use EasyC for the first year

The way I understand what you've said is....

We just put our Autonomous code into the Autonomous(); function, and the OperatorControl into the OperatorControl(); function. And then before the competition the staff attaches a piece of hardware to the Competition port on the Operator Interface board, and they'll call the proper function when it's time to switch states ?

Same for the Initialize function I assume.
  #8   Spotlight this post!  
Unread 06-02-2008, 12:22
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,735
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Rookie Team - Autonomous Mode Question

If you're using one of the standard code bases out there (either the one from last year on ifi's website or Kevin's from the thread at the top of this forum or easy C), then yup. You just have to fill in your parts. The init functions in both of those bases are called once, then the other portion is called repeatedly every 26.2ms until the state switches. You don't have to worry about the logic to switch between autonomous and user control.

The only thing you got wrong was "And then before the competition the staff attaches a piece of hardware to the Competition port on the Operator Interface board"... They have the cable there in every player station, but you're the one that has to attach it to your OI!
  #9   Spotlight this post!  
Unread 06-02-2008, 16:17
Alexa Stott's Avatar
Alexa Stott Alexa Stott is offline
All I do is twin.
AKA: elixir
FRC #0025 (Raider Robotix)
Team Role: College Student
 
Join Date: Oct 2005
Rookie Year: 2006
Location: No. Bruns., NJ/College Park, MD
Posts: 781
Alexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond reputeAlexa Stott has a reputation beyond repute
Send a message via AIM to Alexa Stott
Re: Rookie Team - Autonomous Mode Question

Quote:
Originally Posted by eagle33199 View Post
If you're using one of the standard code bases out there (either the one from last year on ifi's website or Kevin's from the thread at the top of this forum or easy C), then yup. You just have to fill in your parts. The init functions in both of those bases are called once, then the other portion is called repeatedly every 26.2ms until the state switches. You don't have to worry about the logic to switch between autonomous and user control.

The only thing you got wrong was "And then before the competition the staff attaches a piece of hardware to the Competition port on the Operator Interface board"... They have the cable there in every player station, but you're the one that has to attach it to your OI!
Yes, it is very important to remember to plug in the competition port!

As stated earlier in this thread, it is recommended that you make a dongle (or buy the one from AndyMark) that contains an autonomous switch and a disable switch (sometimes, you just never know when the robot is going to go haywire when you load in some new code...). Pretty much everything you need can be bought at your beautiful, local RadioShack (or any other similar stores in your area). Either way, a disable button is a must.

However, if you do not have a dongle, you can temporarily do call your autonomous function for when a button on the joystick/control system is pushed. We did this to test auto mode when our dongle fell off the bus. If you do this, remember to remove it from your code before the competition. You don't want your robot to start running autonomously should your driver accidentally hit the button on the joystick. I don't recommend doing this unless you absolutely cannot get your hands on a dongle.
__________________
|Email:alexastott[at]gmail.com|Facebook|@zelixir|Google+|
[University of Maryland Computer Science, Psychology]
[Brunswick Eruption]
Closed Thread


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
Team 1574 Autonomous Mode Guy_E Robot Showcase 4 01-04-2007 05:08
Question about autonomous mode itsme Programming 12 12-01-2007 13:20
Team 81's Autonomous Mode Eldarion Programming 15 25-02-2006 00:37
a simple autonomous mode question chippermonky Programming 3 18-02-2005 01:54
A little question about the autonomous mode Anton Programming 4 18-01-2005 14:08


All times are GMT -5. The time now is 09:21.

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