potato... also maybe fixed driverstation::GetInstance() again potentially

This commit is contained in:
john sandstedt 2016-02-22 19:13:09 -05:00
parent 420a5723a7
commit efbe261750
1 changed files with 8 additions and 8 deletions

View File

@ -31,7 +31,7 @@ class Robot: public IterativeRobot
RobotDrive drive;
Shooter shooter;
Joystick driver_stick, operator_stick;
DriverStation ds;
//DriverStation DriverStation::GetInstance();
float power;
public:
Robot():
@ -46,7 +46,7 @@ public:
driver_stick(0), // right stick (operator)
operator_stick(1) // left stick (driver)
{
ds.GetInstance();
//DriverStation::GetInstance().GetInstance();
}
@ -64,7 +64,7 @@ private:
/*void LogData()
{
static PowerDistributionPanel pdp;
static DriverStation ds = DriverStation::GetInstance();
static DriverStation DriverStation::GetInstance() = DriverStation::GetInstance();
static std::vector<CANTalon*> motors;
static std::ofstream logA, logB, logC;
@ -261,11 +261,11 @@ private:
LOG("\t" << driver_stick.GetTwist());
//DriverStation Data
LOG("\t" << ds.GetAlliance());
LOG("\t" << ds.GetLocation());
LOG("\t" << ds.GetMatchTime());
LOG("\t" << ds.IsFMSAttached());
LOG("\t" << ds.IsSysBrownedOut());
LOG("\t" << DriverStation::GetInstance().GetAlliance());
LOG("\t" << DriverStation::GetInstance().GetLocation());
LOG("\t" << DriverStation::GetInstance().GetMatchTime());
LOG("\t" << DriverStation::GetInstance().IsFMSAttached());
LOG("\t" << DriverStation::GetInstance().IsSysBrownedOut());
LOG(std::endl);
}
};