|
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.
|