|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
GetAlliance value
Hey all,
Does anyone know what the driver station "get alliance" method returns if you're not hooked up to FMS? We'd test it out, except our robot is away from home due to a practice match tomorrow. |
|
#2
|
||||
|
||||
|
Re: GetAlliance value
I'm not sure what it returns, but I know it won't let you do it. You get an error in the debug console. I just wrote code that used the GetAlliance(), commented it out, then wrote code that sets the alliance manually. For release, just switch back to the GetAlliance() code.
EDIT: I looked through the source code and it turns out that GetAlliance() returns 'kInvalid' when you aren't hooked up to FMS. So you're still going to need a set of release code and debug code. Last edited by Sentient : 14-02-2009 at 09:47. |
|
#3
|
|||
|
|||
|
Re: GetAlliance value
Thanks
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Value of degree to calculate range? | Ianuser | Programming | 20 | 14-02-2007 15:34 |
| True Value of Offseason Events | Lisa Rodriguez | Off-Season Events | 8 | 14-05-2004 13:37 |
| OI and analog: Zero value | Astronouth7303 | Programming | 1 | 02-02-2004 16:00 |
| Value of Defense | archiver | 1999 | 4 | 23-06-2002 22:21 |