[hal] Change usage reporting to string-based (#7763)

This commit is contained in:
Peter Johnson
2025-02-07 12:37:23 -08:00
committed by GitHub
parent bfff891b5c
commit 764ada9b66
188 changed files with 637 additions and 2298 deletions

View File

@@ -6,7 +6,7 @@
#include "frc/motorcontrol/PWMVenom.h"
#include <hal/FRCUsageReporting.h>
#include <hal/UsageReporting.h>
using namespace frc;
@@ -16,5 +16,5 @@ PWMVenom::PWMVenom(int channel) : PWMMotorController("PWMVenom", channel) {
m_pwm.SetSpeed(0.0);
m_pwm.SetZeroLatch();
HAL_Report(HALUsageReporting::kResourceType_FusionVenom, GetChannel() + 1);
HAL_ReportUsage("IO", GetChannel(), "FusionVenom");
}