Go to Post Who doesn't love a good Finger Lakes Regional?! - LeelandS [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 25-01-2004, 22:01
CharlieWilken CharlieWilken is offline
Registered User
#0634 (Robowolves)
 
Join Date: Jan 2002
Location: Van Nuys, CA
Posts: 46
CharlieWilken is an unknown quantity at this point
test autonomous mode

How does one test their autonomous code. How do you set your robot into autonomous mode. Then how do you turn off autonomous remotely?
  #2   Spotlight this post!  
Unread 25-01-2004, 22:08
Guest
 
Posts: n/a
Re: test autonomous mode

This is what we did last year:

We created a "key" (as in a wire on a keychain). Whenever we wanted to put our robot in autonomous mode, we would close a circuit between the autonomous mode pin and +5v with the ends of the "key." We pulled out the key when we were done.
  #3   Spotlight this post!  
Unread 25-01-2004, 22:11
pras870's Avatar
pras870 pras870 is offline
Registered User
AKA: Mike
#0870 (Team Rice)
Team Role: Mentor
 
Join Date: Feb 2003
Location: Southold, NY
Posts: 214
pras870 can only hope to improve
Send a message via AIM to pras870
Re: test autonomous mode

Quote:
Originally Posted by SilverStar
This is what we did last year:

We created a "key" (as in a wire on a keychain). Whenever we wanted to put our robot in autonomous mode, we would close a circuit between the autonomous mode pin and +5v with the ends of the "key." We pulled out the key when we were done.
my team did this last year too, worked perfectly everytime.
__________________
'02 SBPLI Rookie of the Year
'03 UTC Johnson & Johnson Award Winners
'03 SBPLI Kleiner Perkins Caufield & Byers Entrepreneurship Award Winners
'03 SBPLI Regional Winners
'04 SBPLI Xerox Creativity Award Winners

  #4   Spotlight this post!  
Unread 25-01-2004, 23:20
ShadowKnight's Avatar
ShadowKnight ShadowKnight is offline
Registered User
FRC #1719 (Umbrella Corporation)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Alexandria, VA
Posts: 142
ShadowKnight has a spectacular aura aboutShadowKnight has a spectacular aura about
Re: test autonomous mode

we actually wired that circuit to a switch on our oi last year for testing purposes...
  #5   Spotlight this post!  
Unread 25-01-2004, 23:49
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
Re: test autonomous mode

Our team created a dongle (basically the same thing) by taking a DB-25 casing and attaching an SPST on the top of it (wiring the same as mentioned above). This allowed us quick usage of the autonomous mode and also made it easy to lend the dongle to others in the pits. I highly suggest this method as it is very easy to build and to use!
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge - http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic
  #6   Spotlight this post!  
Unread 25-01-2004, 23:51
Guest
 
Posts: n/a
Re: test autonomous mode

I was under the impression that input from the OI is ignored when in autonomous mode. So how did you get it out of auto mode?
  #7   Spotlight this post!  
Unread 26-01-2004, 00:03
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
Re: test autonomous mode

Quote:
Originally Posted by SilverStar
How did you get it out of auto mode?
I'm not quite sure what you mean but I'll try to answer:

The dongle was used only to test the autonomous programs so we really didn't have much need to switch out of the mode. Still, if problems did arise, we could simply switch the dongle off and user mode would pop right back up. This became useful at times when program bugs would send the robot scrambling in a random direction on a murderous rampage (which happened more than once)!

One great thing about the OI is that it will read control input during disabled mode. This allows you to give the robot information (such as which program to run) up to the last second before the buzzer. Our team used this to our advantage, allowing us to have 7 autonomous programs (3 switches, binary) that we could choose as we set up the controls and switch quickly if problems came up (we used the last binary position - 0 - as a manual override in the program just in case something went wrong with both the program AND the dongle (quelle catastrophe!).
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge - http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic
  #8   Spotlight this post!  
Unread 26-01-2004, 00:11
ShadowKnight's Avatar
ShadowKnight ShadowKnight is offline
Registered User
FRC #1719 (Umbrella Corporation)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Alexandria, VA
Posts: 142
ShadowKnight has a spectacular aura aboutShadowKnight has a spectacular aura about
Re: test autonomous mode

for testing purposes, we wired the switch into the competition port, utilizing the autonomous pin and a ground. if it was a close, the robot saw auton_mode = 1 and it would act based on that. When we flipped the switch off, auton_mode = 0 and it would act as if the 15 seconds was over...That's how were wired our controls for testing. We unplugged our stuff from the competition port when we would go to a match.
  #9   Spotlight this post!  
Unread 26-01-2004, 00:12
Guest
 
Posts: n/a
Re: test autonomous mode

Oops, i was asking ShadowKnight.
  #10   Spotlight this post!  
Unread 26-01-2004, 00:14
ShadowKnight's Avatar
ShadowKnight ShadowKnight is offline
Registered User
FRC #1719 (Umbrella Corporation)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Alexandria, VA
Posts: 142
ShadowKnight has a spectacular aura aboutShadowKnight has a spectacular aura about
Re: test autonomous mode

does that answer your question?
  #11   Spotlight this post!  
Unread 26-01-2004, 09:19
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,188
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: test autonomous mode

theres a schematic to make a dongle that connects to the oi and controls the auto mode, disabling the robot, and the channel it runs on here http://www.innovationfirst.com/FIRST...nout_Guide.PDFPinout Guide
  #12   Spotlight this post!  
Unread 26-01-2004, 09:24
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: test autonomous mode

best thing to do is to wire up the auton and disable switches as the post above suggested

then you will be using auton mode exactly the same as it will be used at the regionals

if you kludge some special user interface switch and let your own code decide when its suppose to run auton mode

you may end up like many teams last year, who thought they had auton mode working great, but it would not work with the FIRST equipment on the field.

The 'competition port' switch setup is the only way to go.
  #13   Spotlight this post!  
Unread 19-02-2004, 23:02
uzi uzi is offline
Registered User
#1392
 
Join Date: Feb 2004
Location: Ajax, Ontario
Posts: 3
uzi is an unknown quantity at this point
Re: test autonomous mode

can it not be as simple as setting the value of autonomous_mode = 1?

(if not mind letting me know why please!)
  #14   Spotlight this post!  
Unread 19-02-2004, 23:19
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: test autonomous mode

yes, you could just hardcode the if/while statement... but I believe autonomous_mode is reset each getdata(), so you'd probably just want to replace autonomous_mode with 1, instead of assigning it
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #15   Spotlight this post!  
Unread 20-02-2004, 00:39
Pat Fairbank's Avatar
Pat Fairbank Pat Fairbank is offline
Circuit Breaker
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2001
Location: San Jose, CA
Posts: 2,132
Pat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond repute
Send a message via MSN to Pat Fairbank
Re: test autonomous mode

If you don't have time to do the soldering (or if you're too lazy), setting your team number to 0000 turns autonomous mode on too, if you briefly connect the tether cable between the OI and RC after setting it. You can't turn it off remotely though, since this makes the RC act completely independantly of the OI.
__________________
Patrick Fairbank
Team 254 | Mentor (2012-)
Team 1503 | Mentor (2007-2011)
Team 296 | Alumnus (2001-2004) | Mentor (2005-2006)

patfairbank.com
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
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
autonomous mode? bigwalt Technical Discussion 1 21-01-2003 01:14


All times are GMT -5. The time now is 01:27.

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