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

Change-Id: I863ba263b822a60f46a04f4de2e3c570df5f317d
This commit is contained in:
Kevin O'Connor
2014-08-27 14:39:57 -04:00
parent d58c6f0c0f
commit 778620b0a9

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"));