mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[hal] Change usage reporting to string-based (#7763)
This commit is contained in:
@@ -13,6 +13,5 @@ DifferentialDriveOdometry::DifferentialDriveOdometry(
|
||||
units::meter_t rightDistance, const Pose2d& initialPose)
|
||||
: Odometry(m_kinematicsImpl, gyroAngle, {leftDistance, rightDistance},
|
||||
initialPose) {
|
||||
wpi::math::MathSharedStore::ReportUsage(
|
||||
wpi::math::MathUsageId::kOdometry_DifferentialDrive, 1);
|
||||
wpi::math::MathSharedStore::ReportUsage("DifferentialDriveOdometry", "");
|
||||
}
|
||||
|
||||
@@ -13,6 +13,5 @@ DifferentialDriveOdometry3d::DifferentialDriveOdometry3d(
|
||||
units::meter_t rightDistance, const Pose3d& initialPose)
|
||||
: Odometry3d(m_kinematicsImpl, gyroAngle, {leftDistance, rightDistance},
|
||||
initialPose) {
|
||||
wpi::math::MathSharedStore::ReportUsage(
|
||||
wpi::math::MathUsageId::kOdometry_DifferentialDrive, 1);
|
||||
wpi::math::MathSharedStore::ReportUsage("DifferentialDriveOdometry3d", "");
|
||||
}
|
||||
|
||||
@@ -13,6 +13,5 @@ MecanumDriveOdometry::MecanumDriveOdometry(
|
||||
const MecanumDriveWheelPositions& wheelPositions, const Pose2d& initialPose)
|
||||
: Odometry(m_kinematicsImpl, gyroAngle, wheelPositions, initialPose),
|
||||
m_kinematicsImpl(kinematics) {
|
||||
wpi::math::MathSharedStore::ReportUsage(
|
||||
wpi::math::MathUsageId::kOdometry_MecanumDrive, 1);
|
||||
wpi::math::MathSharedStore::ReportUsage("MecanumDriveOdometry", "");
|
||||
}
|
||||
|
||||
@@ -13,6 +13,5 @@ MecanumDriveOdometry3d::MecanumDriveOdometry3d(
|
||||
const MecanumDriveWheelPositions& wheelPositions, const Pose3d& initialPose)
|
||||
: Odometry3d(m_kinematicsImpl, gyroAngle, wheelPositions, initialPose),
|
||||
m_kinematicsImpl(kinematics) {
|
||||
wpi::math::MathSharedStore::ReportUsage(
|
||||
wpi::math::MathUsageId::kOdometry_MecanumDrive, 1);
|
||||
wpi::math::MathSharedStore::ReportUsage("MecanumDriveOdometry3d", "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user