[wpimath] Add usage reporting for state-space classes (#8453)

- LinearQuadraticRegulator
- Kalman filters
- Pose estimators
- LinearSystemLoop

Fixes #2925.
This commit is contained in:
Peter Johnson
2025-12-06 09:17:02 -08:00
committed by GitHub
parent 0d1dd84e86
commit baa6379267
20 changed files with 95 additions and 0 deletions

View File

@@ -135,6 +135,8 @@ class LinearQuadraticRegulator {
}
Reset();
wpi::math::MathSharedStore::ReportUsage(
wpi::math::MathUsageId::kController_LinearQuadraticRegulator, 1);
}
/**
@@ -194,6 +196,8 @@ class LinearQuadraticRegulator {
}
Reset();
wpi::math::MathSharedStore::ReportUsage(
wpi::math::MathUsageId::kController_LinearQuadraticRegulator, 1);
}
LinearQuadraticRegulator(LinearQuadraticRegulator&&) = default;