[wpimath] ProfiledPIDController: Add to SendableRegistry (#4656)

Co-authored-by: Ryan Blue <ryanzblue@gmail.com>
This commit is contained in:
shueja-personal
2022-12-13 22:31:06 -08:00
committed by GitHub
parent c569d8e523
commit 7ba8a9ee1f
3 changed files with 10 additions and 6 deletions

View File

@@ -4,9 +4,7 @@
#include "frc/controller/ProfiledPIDController.h"
void frc::detail::ReportProfiledPIDController() {
int frc::detail::IncrementAndGetProfiledPIDControllerInstances() {
static int instances = 0;
++instances;
wpi::math::MathSharedStore::ReportUsage(
wpi::math::MathUsageId::kController_ProfiledPIDController, instances);
return ++instances;
}