2016-01-02 03:02:34 -08:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2017-08-23 22:06:13 -07:00
|
|
|
/* Copyright (c) 2016-2017 FIRST. All Rights Reserved. */
|
2016-01-02 03:02:34 -08:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
2014-08-08 17:05:49 -04:00
|
|
|
|
|
|
|
|
#include "HLUsageReporting.h"
|
|
|
|
|
|
2016-11-01 22:33:12 -07:00
|
|
|
using namespace frc;
|
|
|
|
|
|
2015-06-23 04:49:51 -07:00
|
|
|
HLUsageReportingInterface* HLUsageReporting::impl = nullptr;
|
2014-08-08 17:05:49 -04:00
|
|
|
|
|
|
|
|
void HLUsageReporting::SetImplementation(HLUsageReportingInterface* i) {
|
2015-06-25 15:07:55 -04:00
|
|
|
impl = i;
|
2014-08-08 17:05:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void HLUsageReporting::ReportScheduler() {
|
2015-06-23 04:49:51 -07:00
|
|
|
if (impl != nullptr) {
|
2015-06-25 15:07:55 -04:00
|
|
|
impl->ReportScheduler();
|
|
|
|
|
}
|
2014-08-08 17:05:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void HLUsageReporting::ReportSmartDashboard() {
|
2015-06-23 04:49:51 -07:00
|
|
|
if (impl != nullptr) {
|
2015-06-25 15:07:55 -04:00
|
|
|
impl->ReportSmartDashboard();
|
|
|
|
|
}
|
2014-08-08 17:05:49 -04:00
|
|
|
}
|