Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   GetAlliance value (http://www.chiefdelphi.com/forums/showthread.php?t=74407)

nathanww 14-02-2009 00:46

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.

Sentient 14-02-2009 09:42

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.

nathanww 15-02-2009 11:09

Re: GetAlliance value
 
Thanks:)


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi