Go to Post The more rookies the better, they always think of the things that we dont - pakrat [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 28-03-2005, 12:43
larwilliams larwilliams is offline
Registered User
#1312
 
Join Date: Mar 2005
Location: Ontario, Canada
Posts: 2
larwilliams is an unknown quantity at this point
Determining Team Color

Hi,

I tried searching for this in the forums so please excuse me if I simply missed it...

Is there any way to determine programmatically which team color you are assigned? This is for autonomous mode programming...mirrored on opposite side of playing field.

Thanks. Larry
  #2   Spotlight this post!  
Unread 28-03-2005, 12:58
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: Determining Team Color

Not sure about that but another way you can get around this is to wire up a switch to the Robot Controller to correspond to which side your robot is on.
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
  #3   Spotlight this post!  
Unread 28-03-2005, 13:15
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Determining Team Color

Quote:
Originally Posted by larwilliams
Is there any way to determine programmatically which team color you are assigned?
No. The team/alliance color is not accessable from your program.
We too use a red/blue switch of our own that the coach or driver sets before the start of the match.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 28-03-2005 at 13:50.
  #4   Spotlight this post!  
Unread 28-03-2005, 13:47
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,186
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: Determining Team Color

An easy way to set team color without adding any switches to your bot is to use the wheel on the older flight stick joysticks if you are using those. The wheel isnt used for any normal robot control, so you can say turn it all the way forward for blue, and all the way backward for red. Then, in your code say:

Code:
if(p1_wheel > 210) color = blue;
else color=red;
In this the color would default to red, unless the wheel was turned towards the front.
  #5   Spotlight this post!  
Unread 30-03-2005, 07:41
larwilliams larwilliams is offline
Registered User
#1312
 
Join Date: Mar 2005
Location: Ontario, Canada
Posts: 2
larwilliams is an unknown quantity at this point
Re: Determining Team Color

Thanks to all that have responded.

It seems that a simple toggle switch is the way to go to set team color for programming purposes. We already have a 3 position switch that we are using to specify left, center, right starting position for autonomous mode...

Larry
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
The Death of FIRST Anton Abaya General Forum 23 03-05-2006 17:18
How do you organize your team? NoodleKnight Team Organization 18 03-11-2005 22:57
Representing your team? LauraN General Forum 10 18-04-2004 15:59
**FIRST EMAIL**/Important Information for All Championship Teams! Jeremy Roberts FIRST E-Mail Blast Archive 0 09-04-2004 21:12
The 2003 Index of team's post about their robot... Ken Leung Robot Showcase 4 28-02-2003 00:18


All times are GMT -5. The time now is 04:39.

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