001/*----------------------------------------------------------------------------*/ 002/* Copyright (c) FIRST 2016-2017. All Rights Reserved. */ 003/* Open Source Software - may be modified and shared by FRC teams. The code */ 004/* must be accompanied by the FIRST BSD license file in the root directory of */ 005/* the project. */ 006/*----------------------------------------------------------------------------*/ 007 008package edu.wpi.first.wpilibj.internal; 009 010import edu.wpi.first.wpilibj.HLUsageReporting; 011import edu.wpi.first.wpilibj.hal.FRCNetComm.tInstances; 012import edu.wpi.first.wpilibj.hal.FRCNetComm.tResourceType; 013import edu.wpi.first.wpilibj.hal.HAL; 014 015public class HardwareHLUsageReporting implements HLUsageReporting.Interface { 016 @Override 017 public void reportScheduler() { 018 HAL.report(tResourceType.kResourceType_Command, tInstances.kCommand_Scheduler); 019 } 020 021 @Override 022 public void reportPIDController(int num) { 023 HAL.report(tResourceType.kResourceType_PIDController, num); 024 } 025 026 @Override 027 public void reportSmartDashboard() { 028 HAL.report(tResourceType.kResourceType_SmartDashboard, 0); 029 } 030}