|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||||
|
|||||
|
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.
|
|
#3
|
|||||
|
|||||
|
Re: Determining Team Color
Quote:
We too use a red/blue switch of our own that the coach or driver sets before the start of the match. Last edited by Mark McLeod : 28-03-2005 at 13:50. |
|
#4
|
|||
|
|||
|
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; |
|
#5
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |