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.

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.