mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Merge "Fix artf3476 move RobotState and HLReporting implementation set to somewhere they will get called"
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user