View Single Post
  #2   Spotlight this post!  
Unread 31-01-2009, 13:18
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
Re: Team Color Identification

You can get your team color by using the DriverStation class:

Code:
DriverStation ds;

if(ds.GetAlliance() == DriverStation::kRed)
  // do something
else if(ds.GetAlliance() == DriverStation::kBlue)
  // do something else
else
  // WPI lib is broken as usual
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
Reply With Quote