Go to Post Reach out to successful teams and ask them for help, rather than complain about them. I have never seen a successful team deny help to anyone. - OZ_341 [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 30-01-2004, 00:34
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Initializing autonomous mode

I'm sure this is quite a newbie question, but here goes:

Before a match starts, what state is the robot in?
i.e. Powered On - Radios Active (program running), Autonomous Mode, but Disabled...
or Powered On - Radios Active (programming running), Operator Mode, but Disabled...
or Powered On - Radios not Active (program not running)...
or etc...

The reason is I'm unsure of how to initialize autonomous mode. I'm concerned that the autonomous program might be running before the match actually begins. And if you have some kind of dead-reckoning involved at the start, it'll get all messed up.

Can someone give me a quick lowdown of exactly how the robot states are setup pre-match, and what happens at the start of the match? Hell, detail the transition from autonomous to operator mode too if it's not as obvious as it should be =).

-Shawn...
  #2   Spotlight this post!  
Unread 30-01-2004, 00:43
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Initializing autonomous mode

I believe it's something near your second case, but I may be mistaken. Chances are good that autonomous_mode is a true value only during the actual autonomous mode.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #3   Spotlight this post!  
Unread 30-01-2004, 00:52
Larry Barello Larry Barello is offline
http://www.barello.net
#0492 (Titan Robotics Club)
Team Role: Mentor
 
Join Date: Jan 2002
Location: Bellevue, WA
Posts: 85
Larry Barello has a spectacular aura aboutLarry Barello has a spectacular aura about
Re: Initializing autonomous mode

I have the system right in front of me and it prints out status and this is what it says:

When "disabled" the user code is in normal mode, running the normal mode loop, reading operator inputs, writing outputs, etc. but all outputs are disabled.

This is regardless of whether the autonomous switch is set or not (IFI dongle)

If the autonomous switch is set, the user code transitions into autonomous mode when the disable is removed.
  #4   Spotlight this post!  
Unread 30-01-2004, 01:26
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Initializing autonomous mode

Thanks for the quick responses! That answers all my questions!
  #5   Spotlight this post!  
Unread 30-01-2004, 14:09
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Initializing autonomous mode

Sort of half related: If the OI is unplugged, no code executes.
  #6   Spotlight this post!  
Unread 31-01-2004, 16:45
Code\\Pilot Code\\Pilot is offline
< Only smart people see my avatar
AKA: Rafael Estrada
FRC #1065 (Tatsu)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Florida
Posts: 53
Code\\Pilot is an unknown quantity at this point
Send a message via AIM to Code\\Pilot Send a message via MSN to Code\\Pilot
Re: Initializing autonomous mode

I had the same question once, but i managed to figure it out.
In the OI you can see that you have many ports, and one of those ports is the competition port, through the competition port the referis can stop your robot and activate autonomous. You can make a simulation of the initiation messing with that port.
Here is a link that tells you how:

http://www.innovationfirst.com/FIRST...umentation.htm

it takes to the documentation of innovationfirst.
Click in the link that says "Competition port pin-out guide".
That should help you.

Have fun!!!

Code\\monkey
__________________
Join the Red revolution, give me some RED rep!!!!
if it doesn't work, don't force it. Go get a bigger hammer.

int run = 0;
int robot_chasing_you = 1;

if (robot_chasing_you)
{
run = 254;
}

I got 48 Gmail invites left, pm me with your e-mail so i can send you one.
  #7   Spotlight this post!  
Unread 31-01-2004, 17:41
KevinB's Avatar
KevinB KevinB is offline
Registered User
AKA: Alum
no team
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2001
Location: AL
Posts: 188
KevinB will become famous soon enoughKevinB will become famous soon enough
Send a message via ICQ to KevinB
Re: Initializing autonomous mode

Just to summarize as I understand it:

During the time before the match, the RC is ...
  • Powered On
  • Radios Active
  • Programming running
  • Disabled

I'm not sure if there is a set standard as to whether or not it is in "operator" or "autonomous" mode; with a dongle -- it is possible to change that mode setting while the robot is disabled.
  #8   Spotlight this post!  
Unread 02-02-2004, 07:26
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Initializing autonomous mode

as the docs say: USE EXTREME CAUTION!!! Some pins on the Competition port go DRECTLY to the processor
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
test autonomous mode CharlieWilken Programming 14 20-02-2004 00:39
how can you use a gyro in autonomous mode magical hands Programming 3 02-01-2004 13:31
Programming Autonomous mode Jared Stofflett Programming 3 11-11-2003 09:32
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
autonomous mode timer Don Programming 6 09-02-2003 22:16


All times are GMT -5. The time now is 17:12.

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