Go to Post I owe it to the FIRST community and the awesome users of this site to keep working on this site and making it better. I will do so until someone from Chief Delphi pulls me away from it and tells me to stop. - 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 21-02-2004, 13:01
Brawler006 Brawler006 is offline
Registered User
#1206 (Wrench Warriors)
 
Join Date: Nov 2003
Location: inside my head
Posts: 13
Brawler006 is an unknown quantity at this point
2 questions

1. How does one go about changing the team #, we know that theres dip switches on the OI, but when we change them, the RC and OI don't talk to each other. How do we change the team #?

2. When we turn our robot on, the RC Hardware light is solid red, indicating a RC Fail. What does this mean, and how do we get it to go away?

Thanks for all your help.
  #2   Spotlight this post!  
Unread 21-02-2004, 14:59
WCS V WCS V is offline
Registered User
#1168 (Malvern Prep Robotics)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Malvern, PA
Posts: 16
WCS V is an unknown quantity at this point
Re: 2 questions (programming)

1. When you set the team number using the dip switches, connect the OI to the RC with the red Tether cable. Doing this allows the RC to "know" that the number of the OI that it is supposed to "listen to" has changed.

2. As for the red light on your rc, it could be caused by several things.
-Is the OI on and communicating with the RC?
-Is there a code error?
-Is your battery charged?
-Another thing that could cause this light to be red is a short somewhere in your circuit. (This happened to us earlier). Check all of your connections to be sure that there is no short.
__________________
WCS - Chief Technology Officer Malvern Prep Robotics #1168
"I can only do that in the code if its physically possible for it to happen."
  #3   Spotlight this post!  
Unread 22-02-2004, 13:13
Kevin Karan's Avatar
Kevin Karan Kevin Karan is offline
Linux Guy
AKA: maxdamage
None #0174 (Arctic Warriors)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Liverpool, NY
Posts: 141
Kevin Karan will become famous soon enoughKevin Karan will become famous soon enough
Send a message via AIM to Kevin Karan
Re: 2 questions

Thats usualy because your backup battery is dead
__________________
It isnt ALWAYS the programmers falt!
2004: Buckeye team website award
2002: Rutgers semi-finalists
2001: National semi-finalists
2001: Rutgers semi-finalists
1998: Manchester Rookie All-Star Award
  #4   Spotlight this post!  
Unread 22-02-2004, 15:03
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: 2 questions

Quote:
Originally Posted by Kevin Karan
Thats usualy because your backup battery is dead
We are running our RC w/o the backup with no troubles...
  #5   Spotlight this post!  
Unread 22-02-2004, 15:06
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,187
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: 2 questions (programming)

i'l put this here....

would you happen to know where to find what the asignment of each input pin on the ports on the OI are. I am looking to make a switch that controls the auto mode form the OI. also, when the OI is disabled in the begining of each match, does the RC still process data from the OI.. (can i code something into my autonomous function that looks for input pins on the OI?)

Last edited by Tom Bottiglieri : 22-02-2004 at 15:06. Reason: assdaf
  #6   Spotlight this post!  
Unread 22-02-2004, 15:15
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: 2 questions (programming)

Quote:
Originally Posted by ToMMan b182
i'l put this here....

would you happen to know where to find what the asignment of each input pin on the ports on the OI are. I am looking to make a switch that controls the auto mode form the OI. also, when the OI is disabled in the begining of each match, does the RC still process data from the OI.. (can i code something into my autonomous function that looks for input pins on the OI?)
all of the switching is in main.c
you can force it into auton mode or disable it or whatever.
but doing so for the compitition is highly illigal and i would not advise it.
if you want a OI switch that puts it into auton mode i would sugest just getting a mockup-compition port and pluging it in to the OI. that way your code is still koshar for the compitition.
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #7   Spotlight this post!  
Unread 22-02-2004, 15:18
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,187
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: 2 questions (programming)

that is not the question i had... i was wondering if the RC processes data from the OI when in disabled or autonmous mode. If it does, i wanted to make a switch that would switch our auto programs (ex go for ball, hang, etc)
  #8   Spotlight this post!  
Unread 22-02-2004, 15:23
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: 2 questions (programming)

when the OI is in disabled mode, the robot sees it as off and no data at all is transmited or received. when it is in auton mode, it does send and recieve data, but because of the construction of the RC (i.e. 2 pics that talk to eachother) you cant get to any of the data while the auton bit is high. i believe if you call the getDataFromMasterRc() all of the vars will return 127. however if you got a second RS232 reciever you may be able to snatch some values. i doubt this is legal tho. your best bet is to put a switch on your robot and run out just before the match and flip it.
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #9   Spotlight this post!  
Unread 22-02-2004, 15:35
Kevin Karan's Avatar
Kevin Karan Kevin Karan is offline
Linux Guy
AKA: maxdamage
None #0174 (Arctic Warriors)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Liverpool, NY
Posts: 141
Kevin Karan will become famous soon enoughKevin Karan will become famous soon enough
Send a message via AIM to Kevin Karan
Re: 2 questions (programming)

Quote:
Originally Posted by ToMMan b182
that is not the question i had... i was wondering if the RC processes data from the OI when in disabled or autonmous mode. If it does, i wanted to make a switch that would switch our auto programs (ex go for ball, hang, etc)
What we did last year and had sucess with and what we will be doing again this year is to just use some spst switches on some digital inputs and have the dude that puts it out on the field set them. For instance

switch 1 2
on on == hang
off on == release balls
on off == get large ball
off off == get moveable goal
__________________
It isnt ALWAYS the programmers falt!
2004: Buckeye team website award
2002: Rutgers semi-finalists
2001: National semi-finalists
2001: Rutgers semi-finalists
1998: Manchester Rookie All-Star Award
  #10   Spotlight this post!  
Unread 22-02-2004, 20: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: 2 questions (programming)

I was under the impression that the RC was disabled at the beginning of the match, not the OI. I even wired a switch based on this. Like this
__T__ RC Status
-xx:xx Disabled
00:00 Auton
00:15 regular
  #11   Spotlight this post!  
Unread 22-02-2004, 20:37
Kevin Karan's Avatar
Kevin Karan Kevin Karan is offline
Linux Guy
AKA: maxdamage
None #0174 (Arctic Warriors)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Liverpool, NY
Posts: 141
Kevin Karan will become famous soon enoughKevin Karan will become famous soon enough
Send a message via AIM to Kevin Karan
Re: 2 questions (programming)

Quote:
Originally Posted by Astronouth7303
I was under the impression that the RC was disabled at the beginning of the match, not the OI. I even wired a switch based on this. Like this
__T__ RC Status
-xx:xx Disabled
00:00 Auton
00:15 regular
what?
The OI (I assume your talking about the "operator interface") is "enabled" BUT your not allowed to read anything on it durring the autonomus period, like last year. The robot is to run entirly on its own (using rc inputs/sensors) or on its own dead reaconing. If you want an autonomus mode selector switch, it MUST be on the robot itself, it doenst matter how the rc reads the switches as long as you dont go over your $300 electronics limit (it was changed from $200 in one of the updates if you missed it). If the judges notice anything odd on your OI or in your code, they wont let you pass inspection.
__________________
It isnt ALWAYS the programmers falt!
2004: Buckeye team website award
2002: Rutgers semi-finalists
2001: National semi-finalists
2001: Rutgers semi-finalists
1998: Manchester Rookie All-Star Award
  #12   Spotlight this post!  
Unread 22-02-2004, 21:01
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: 2 questions (programming)

Can you read it before the match? We wired a Left/Right switch on the OI to save weight. Plus, I made a cool little panel for it.

Basically, you put the code that sets the variable in user_rountines.c, and the auton code reads the variable, which would NOT be changed during auton mode because User_Autonomous_Code() has it's own loop.
  #13   Spotlight this post!  
Unread 22-02-2004, 21:04
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: 2 questions (programming)

i dont know wether or not this would work. my understanding is that the robot must be off when it is placed on the field. also, i believe that the OI must be off (well duh) before power is aplied. the power is suplied thught the compititon port. therfore, as soon as the OI is powerd, it puts the robot in disabled mode, and no data, from swtiches or joystics or whatever, is send to the RC.

so i would say nope. but i may be wrong
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #14   Spotlight this post!  
Unread 22-02-2004, 21:06
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: 2 questions (programming)

Quote:
Originally Posted by jacob_dilles
when the OI is in disabled mode, the robot sees it as off and no data at all is transmited or received. when it is in auton mode, it does send and recieve data, but because of the construction of the RC (i.e. 2 pics that talk to eachother) you cant get to any of the data while the auton bit is high.
That's not how it's working for me. When our competition port dongle is set to disable the robot and the yellow "disabled" light is on, communication happens as normal, and the RC sees the OI just fine. It just can't set its outputs to control the actual robot hardware. When the dongle is set to "autonomous" and the yellow light is blinking, all data from the OI is read as default values.

I'm expecting this to be the case before a real match, so the robot can read our IO's autonomous options switches in the time before autonomous mode is activated.
  #15   Spotlight this post!  
Unread 22-02-2004, 21:10
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: 2 questions (programming)

i think this would be worth a vistit to FIRST q&a because i know there have been at least 2 revisions to the OI - interface system sence it was released, thus the problems in DC. you may be apsolutly right, and i hope you are becasue we could eliminate a lot of confusion by getting rid of needless switches on our bot. but last year our team tried something similar and it resulted in bad stuff. like, we went barrling into the wall and got a warning for field damage :/
__________________
--------------------------
"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
3 Questions!!! (2/20/04) Andy Grady General Forum 20 20-02-2004 17:31
3 Questions!!! (2/5/04) Andy Grady General Forum 11 05-02-2004 21:14
3 Questions!!! (1/5/04) Andy Grady General Forum 8 05-01-2004 16:01
$3500 limit - Who does not have questions Raul Rules/Strategy 5 12-01-2003 11:31
Update 7 - Behind Schedule (or out of questions)? archiver 2000 2 23-06-2002 22:58


All times are GMT -5. The time now is 23:57.

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