Merge "Fix artf3476 move RobotState and HLReporting implementation set to somewhere they will get called"

This commit is contained in:
Brad Miller (WPI)
2014-08-27 13:05:04 -07:00
committed by Gerrit Code Review

View File

@@ -50,6 +50,8 @@ RobotBase::RobotBase()
, m_ds (NULL)
{
m_ds = DriverStation::GetInstance();
RobotState::SetImplementation(DriverStation::GetInstance()); \
HLUsageReporting::SetImplementation(new HardwareHLReporting()); \
}
/**
@@ -152,9 +154,6 @@ void RobotBase::startRobotTask(FUNCPTR factory)
printf("WPILib was compiled without -D'SVN_REV=nnnn'\n");
#endif
RobotState::SetImplementation(DriverStation::GetInstance());
HLUsageReporting::SetImplementation(new HardwareHLReporting());
#ifdef __vxworks
// Check for startup code already running
int32_t oldId = taskNameToId(const_cast<char*>("FRC_RobotTask"));