Telling alliance in the code

Is it possible to tell which alliance you are on in the code? I recall a few years ago (2005 I think) there was an LED that flashed red or blue depending on your color. If anyone knows if it is still possible to check color of alliance I would like to know how. Thanks.

I don’t know of any documented way to tell which alliance you’re on. I’m not even sure if that information is part of the field communication this year.

What about telling what channel you are recieving data on. Since each radio transmits on a different channel could you tell your color from that? If so, how could you read that?

My suggestion would be to add a simple switch connected to a digital IO. Since you will know your alliance before you queue, just have the drivers flip the switch to whatever alliance you are on.

That is most likely the simplest solution and what I will end up doing. I just thought that it would be kind of cool to do it in code.