mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
[hal] Change usage reporting to string-based (#7763)
This commit is contained in:
@@ -37,8 +37,7 @@ Trajectory TrajectoryUtil::FromPathweaverJson(std::string_view path) {
|
||||
wpi::json json = wpi::json::parse(fileBuffer.value()->GetCharBuffer());
|
||||
|
||||
wpi::math::MathSharedStore::ReportUsage(
|
||||
wpi::math::MathUsageId::kTrajectory_PathWeaver,
|
||||
++pathWeaverTrajectoryInstances);
|
||||
"Trajectory.PathWeaver", std::to_string(++pathWeaverTrajectoryInstances));
|
||||
|
||||
return Trajectory{json.get<std::vector<Trajectory::State>>()};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user