Go to Post I also like how the FTC folks are able to get involved with the FRC process this year, but it's always a bit of a let down when you're told you can't launch things into the air. - s_forbes [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 21-01-2003, 08:57
Ryan Meador Ryan Meador is offline
Registered User
#0190
Team Role: Electrical
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Worcester, NH
Posts: 68
Ryan Meador will become famous soon enough
Pre-Autonomous OI Communication

I just came from the FIRST forums and I know this question has been asked, but I've been unable to find the answer. Has it been answered? In case you don't know the quesiton, it is this: does data from the OI get transmitted to the RC before the autonomous phase begins? A post from FIRST strongly indicates this is the case, but I've never seen it explicitly stated. If someone could direct me to the FIRST forum post where it's answered, I'd be very happy... I don't want to commit to designing an AI selector switch just to have it not work Thanks.
__________________
-Ryan

"You're not a real programmer until you end all your sentences with semicolons;"
  #2   Spotlight this post!  
Unread 21-01-2003, 09:57
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,605
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
I've seen several posts that say that you can't select a program based on human controls, it must be on the robot, here is one example :
http://jive.ilearning.com/thread.jsp...sage=2493#2493

What message are you refering to when you say that they left it ambiguous?
  #3   Spotlight this post!  
Unread 21-01-2003, 12:41
Ryan Meador Ryan Meador is offline
Registered User
#0190
Team Role: Electrical
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Worcester, NH
Posts: 68
Ryan Meador will become famous soon enough
I agree that the post you linked to did seem rather explicit in its declaration that we're not allowed to select programs after we put the bot down, but I wonder if it was in reference to a control that is physically on the robot? The post that I was originally reffering to is this: http://jive.ilearning.com/thread.jsp...t=15&trange=15
__________________
-Ryan

"You're not a real programmer until you end all your sentences with semicolons;"
  #4   Spotlight this post!  
Unread 21-01-2003, 17:38
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
If the control is on the robot, it will be read just like every other sensor/switch on the RC. Therefore, the first time through your autonomous mode loop, just check the value and run the appropriate program.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #5   Spotlight this post!  
Unread 22-01-2003, 08:28
Ryan Meador Ryan Meador is offline
Registered User
#0190
Team Role: Electrical
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Worcester, NH
Posts: 68
Ryan Meador will become famous soon enough
Perhaps I'm just all confused and warped, but I think I'm not getting my message across. My goal is to have a big button on our operator interface system that lets us select the AI mode prior to the beginning of the match. I'd much prefer that to a knob on the robot.
__________________
-Ryan

"You're not a real programmer until you end all your sentences with semicolons;"
  #6   Spotlight this post!  
Unread 22-01-2003, 08:59
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,605
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Even if there is a way to use a switch on the OI to select a program, it would seem to violate the intent of the rules regarding autonomous mode. See section 7.3 of the game section.

It's not any harder to do a switch on the robot (just a little less convienent), which is why Rob was suggesting that, because that doesn't violate the intent of the rules (and was even suggested at kickoff).

If you search the forums, you will find several threads about possible "loopholes" in the autonomous mode. You could try implementing these, or you could ask FIRST for clarification about whether exploiting something like that is legal. Nobody knows if these will work at the competition, though, so it's just speculation. So, if you really want to know, make a switch on the OI, and be prepared for it to not work at the competition.
  #7   Spotlight this post!  
Unread 22-01-2003, 09:34
Ryan Meador Ryan Meador is offline
Registered User
#0190
Team Role: Electrical
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Worcester, NH
Posts: 68
Ryan Meador will become famous soon enough
*sigh* I don't believe it violates the spirit of the rules any more than a knob on the robot. I'm not communicating with the bot during the autonomous phase, as some others have suggested via the e-stop, etc. It's just a mode select button. Think of it as pushing the launch button on an interstellar probe... after you set the launch parameters, it's gone off on it's own (I realize that's not 100% a great metaphor, but I'm thinkin' on my feet here!)
__________________
-Ryan

"You're not a real programmer until you end all your sentences with semicolons;"
  #8   Spotlight this post!  
Unread 22-01-2003, 11:18
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Ryan,

Remember, when in autonomous mode, the system is DESIGNED to not allow input from the operator interface (OI) to the robot controller (RC). Your mode select button would be connected to the OI, so the robot would know nothing of that switch state until the autonomous phase is over.

Now, it's conceivable that FIRST's competition control system might not turn on autonomous mode until the very beginning of the autonomous phase, when the robot is un-disabled. This would mean that even though the robot is disabled, it would be receiving all the OI inputs, and COULD respond to a mode select button when the autonomous phase starts.

Note that when your robot is disabled, it is not brain dead. It is just paralysed. That is, the master microprocessor in the RC refuses to act upon any commands from your user program.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #9   Spotlight this post!  
Unread 22-01-2003, 12:14
Ryan Meador Ryan Meador is offline
Registered User
#0190
Team Role: Electrical
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Worcester, NH
Posts: 68
Ryan Meador will become famous soon enough
and around and around and around we go!

I'm about ready to stop beating this dead horse. Let me try this as an outline:

* I am a very competent programmer - most importantly for this task, I know how to make a state machine

* I realize that when autonomous, the OI sends dummy data that represents all switches off and all joysticks centered

* I can make my state machine switch to the correct state based on user input BEFORE autonomous mode begins, assuming it isn't already on when we plug in our control system

* I know that disabled mode merely renders inactive the outputs - I use it a lot for debugging stuff without having the robot run across the floor and kill innocent freshmen

* Nothing I have suggested or intended involves the transmission of data during the autonomous phase

Can I make a switch on my OI to select an appropriate AI? "Can" assumes a) it's possible and, b) it's allowed by the rules.
__________________
-Ryan

"You're not a real programmer until you end all your sentences with semicolons;"
  #10   Spotlight this post!  
Unread 22-01-2003, 15:38
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: and around and around and around we go!

Quote:
Originally posted by Ryan Meador
Can I make a switch on my OI to select an appropriate AI? "Can" assumes a) it's possible and, b) it's allowed by the rules.
The answer is YES! (UNLESS you are planning on making the selection AFTER you are connected to the competition control system. Since you aren't allowed to use wireless communications except during a match, that implies that your robot will be tethered to your OI.)

This is the same as one of the methods I was considering using to select autonomous programs for our robot.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #11   Spotlight this post!  
Unread 22-01-2003, 16:00
ttedrow's Avatar
ttedrow ttedrow is offline
Herding electrons
AKA: Tim Tedrow
FRC #0281 (EnTech)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Greenville, SC
Posts: 165
ttedrow will become famous soon enoughttedrow will become famous soon enough
For those of you still discussing this topic:

I talked with Innovation first on 1/21/02. Here is my understanding of the sequence that the PBasic program can see during each phase of competition.



STANDBY PERIOD: (power on RC and OI)
comp_mode = High
auton_mode = Low
Robot Controller Analog Outputs = 127
Robot Controller Digital Outputs = 0
Operator Interface Analog Inputs = 127
Operator Interface Digital Inputs = 0

AUTONOMOUS PERIOD:
comp_mode = High
auton_mode = High
Robot Controller Analog Outputs = Program Control
Robot Controller Digital Outputs = Program Control
Operator Interface Analog Inputs = 127
Operator Interface Digital Inputs = 0

OPERATOR PERIOD:
comp_mode = High
auton_mode = Low
Robot Controller Analog Outputs = Program Control
Robot Controller Digital Outputs = Program Control
Operator Interface Analog Inputs = Operator Control
Operator Interface Digital Inputs = Operator Control

I hope this will help

Tim Tedrow
__________________
Sr. Design Engineer
Caterpillar Inc.
Greenville, SC

KD4EGM

FRC 281 Greenvillains
Infected with the FIRST virus in 2000

Yes, Chute Door!!!
  #12   Spotlight this post!  
Unread 22-01-2003, 16:07
ttedrow's Avatar
ttedrow ttedrow is offline
Herding electrons
AKA: Tim Tedrow
FRC #0281 (EnTech)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Greenville, SC
Posts: 165
ttedrow will become famous soon enoughttedrow will become famous soon enough
Now if you are a really good programmer, you could use the reset button on the operator interface to cycle through your autonomous program selection.

How?

In the initialization section outside of the main loop, you read and increment a number then write it back to eeprom. This number would be used to select the autonomous program to run. Then you could use the LEDs on the Operator Interface to indicate with program you have selected. But be careful, you may not have enough time to cycle through all of your programs in the 1 minute setup time.

Have some fun with this one. Let us know if it works

Tim Tedrow
__________________
Sr. Design Engineer
Caterpillar Inc.
Greenville, SC

KD4EGM

FRC 281 Greenvillains
Infected with the FIRST virus in 2000

Yes, Chute Door!!!
  #13   Spotlight this post!  
Unread 22-01-2003, 23:00
Mike Rozar's Avatar
Mike Rozar Mike Rozar is offline
Registered User
FRC #0547 (F.E.A.R (Falcon Engineering And Robotics))
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Fayetteville, Tennessee
Posts: 23
Mike Rozar is an unknown quantity at this point
Rotary switch on robot

How about using a simple multi-position rotary switch on the robot?

Safer than combinations of toggle switches, etc......
  #14   Spotlight this post!  
Unread 23-01-2003, 01:19
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Quote:
Originally posted by ttedrow
In the initialization section outside of the main loop, you read and increment a number then write it back to eeprom.
Are you sure the e-stop resets the robot? If not, then the initialization section will not get rerun.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #15   Spotlight this post!  
Unread 23-01-2003, 06:04
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
Quote:
Originally posted by Mike Rozar
How about using a simple multi-position rotary switch on the robot?

Safer than combinations of toggle switches, etc......
One of the problems I foresee is that for the digital inputs on the RC, we're warned not to apply any voltage to the switch pins, and to just ground them to return 1. "All additional electronics must draw power from a 20A circuit breaker," (The_Robot.pdf, page 13, emphasis added by me).

I'm not sure if this means that just attaching a few switches to the digital input pins of the RC is illegal, but unless it's already been clarified, and I just haven't seen it, I'm fairly certain that this rule could become very important.

I might just be delusional, at this time of night. Don't mind me if I just sound dumb. It's probably normal...

Quote:
Originally posted by gwross
Are you sure the e-stop resets the robot? If not, then the initialization section will not get rerun.
I believe he's referring to the Robot Reset button on the OI, not the E-Stop button at the player station.

I'm fairly certain that he's correct in his assessment of the situation, and what he's saying does make sense to me. However convoluted a method it is, it probably works.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
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
A better autonomous method.. randomperson Programming 4 24-02-2004 18:02
crazy idea for autonomous Mike Ciance Programming 16 24-04-2003 21:50
variable? manodrum Programming 11 01-04-2003 17:20
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Autonomous Kill Switch UCGL_Guy Programming 8 15-01-2003 17:39


All times are GMT -5. The time now is 22:05.

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