|
Re: Team Color Identification
if you know about classes, create a simple class
(this probably has bugs in it, but illustrates the point)
Code:
class FakeDriverStation :private DriverStation
{
Alliance GetAlliance(){return DriverStation::kRed;}
};
//Code
//more code
//DriverStation DS;//make sure to uncomment this
FakeDriverStation DS;//and comment this before competition
switch(DS.GetAlliance())
{
...
as an example
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
|