Add usage reporting for the Shuffleboard API (#1685)

This commit is contained in:
Sam Carlberg
2019-05-30 12:36:49 -04:00
committed by Peter Johnson
parent e25e515f2e
commit 4a00cd77bb
3 changed files with 10 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
#include "frc/shuffleboard/ShuffleboardInstance.h"
#include <hal/HAL.h>
#include <networktables/NetworkTable.h>
#include <networktables/NetworkTableInstance.h>
#include <wpi/StringMap.h>
@@ -27,6 +28,7 @@ ShuffleboardInstance::ShuffleboardInstance(nt::NetworkTableInstance ntInstance)
: m_impl(new Impl) {
m_impl->rootTable = ntInstance.GetTable(Shuffleboard::kBaseTableName);
m_impl->rootMetaTable = m_impl->rootTable->GetSubTable(".metadata");
HAL_Report(HALUsageReporting::kResourceType_Shuffleboard, 0);
}
ShuffleboardInstance::~ShuffleboardInstance() {}