Go to Post If you want to grow the program such that every student on the planet has the chance to participate, you have to start THINKING with a world-centric mindset. - Racer26 [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 08-03-2004, 15:52
Allison Allison is offline
Registered User
AKA: Allison Phelps
FRC #1024 (Kil-A-Bytes)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Indianapolis, IN
Posts: 94
Allison has a brilliant futureAllison has a brilliant futureAllison has a brilliant futureAllison has a brilliant futureAllison has a brilliant futureAllison has a brilliant futureAllison has a brilliant futureAllison has a brilliant futureAllison has a brilliant futureAllison has a brilliant futureAllison has a brilliant future
setting autonomous mode

is it allowed to have something like a switch or jumpers on your OI to set your autonomous mode or does it have to be done on the robot? if not how do we choose the autonomous mode we want?

thanks in advance
allison
  #2   Spotlight this post!  
Unread 08-03-2004, 16:03
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: setting autonomous mode

Quote:
Originally Posted by Allison
is it allowed to have something like a switch or jumpers on your OI to set your autonomous mode or does it have to be done on the robot? if not how do we choose the autonomous mode we want?

thanks in advance
allison
Somebody will have to correct me if I'm wrong, but the way the code is, I believe that you read the inputs from the OI once before you enter autonomous mode. However, I'm not sure if the OI will actually send anything to the robot.

The safe way is to have switches on the robot that you set to indicate which autonomous mode you want. Your program then reads these and figures out what you want it to do from them.
__________________

  #3   Spotlight this post!  
Unread 08-03-2004, 16:39
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,113
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: setting autonomous mode

Quote:
Originally Posted by Allison
is it allowed to have something like a switch or jumpers on your OI to set your autonomous mode or does it have to be done on the robot?
We've got a rotary switch on our OI that selects from the menu of autonomous options. The OI inputs do get passed to the robot during the disabled period before autonomous mode begins, so you can read the mode selection and store it somewhere to be used during
autonomous mode. The OI won't be active while autonomous mode is underway -- default values will be transmitted to the robot -- so you'll have to make sure not to accidentally try to read the mode selection after the match begins.
  #4   Spotlight this post!  
Unread 08-03-2004, 17:50
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: setting autonomous mode

I read it when Default_Routine() is ran. Then I store it to a variable and use that in User_Autonomous_Code().
  #5   Spotlight this post!  
Unread 08-03-2004, 18:47
ultramrw21 ultramrw21 is offline
Registered User
no team
 
Join Date: Feb 2004
Location: nc
Posts: 11
ultramrw21 is an unknown quantity at this point
Re: setting autonomous mode

We have three binary switches on the robot to select one of the 8 auto modes. Its worked well so far, but it took a while to explain it to the drivers that set the robot before a round.
  #6   Spotlight this post!  
Unread 08-03-2004, 18:54
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: setting autonomous mode

Quote:
Originally Posted by ultramrw21
We have three binary switches on the robot to select one of the 8 auto modes. Its worked well so far, but it took a while to explain it to the drivers that set the robot before a round.
We do the same thing. What we do is make a sheet your coach (or drivers) can look at which has the program numbers in decimel, along with the names. Then next to the decemel number indicate which swithes need to be on or off to input that decimel number.
  #7   Spotlight this post!  
Unread 08-03-2004, 19:42
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: setting autonomous mode

i was wondering if anyone had any sucess with reading switches off the OI after the match had started and before autonomus was enabled?
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #8   Spotlight this post!  
Unread 08-03-2004, 19:54
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: setting autonomous mode

team update 13 said the OI values are read when the bot is diabled, so you should be able to send them from there

I dont think we have enough switches left free on the OI - we have 4 switches onthe bot tied to the rc_dig_inputs to tell it what to do in auton mode

the most important one you MUST have is a disable - sooner or later you are going to want to sit out auton mode.
  #9   Spotlight this post!  
Unread 08-03-2004, 19:58
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: setting autonomous mode

well currently were only using 2 joystics... that leaves 8 switches open, thats like 64 programs or watever. so i could have done it that way. but there are two big red togle switches on the robot that are clearly labled "disable/enable autonomus" and "knock ball/dont knock ball". it makes it pretty easy. we have 4 digital IOs on the rc left; with just 2 banner sensors. next year i hope they give us more inputs!
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #10   Spotlight this post!  
Unread 08-03-2004, 20:35
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: setting autonomous mode

Quote:
Originally Posted by jacob_dilles
well currently were only using 2 joystics... that leaves 8 switches open, thats like 64 programs or watever. so i could have done it that way. but there are two big red togle switches on the robot that are clearly labled "disable/enable autonomus" and "knock ball/dont knock ball". it makes it pretty easy. we have 4 digital IOs on the rc left; with just 2 banner sensors. next year i hope they give us more inputs!
2^8 = 256
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #11   Spotlight this post!  
Unread 08-03-2004, 20:37
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: setting autonomous mode

lol shush im writing a history paper and CDing at the same time. not thinking using the right part of my brain
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
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
Initializing autonomous mode Mr. Lim Programming 7 02-02-2004 07:26
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 15: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