Go to Post I'm excited. Probably too much, but eh, I'm a big geek. - Brandon Martus [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, 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,753
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!
  #2   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 23:44.

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