Skip to content

Commit

Permalink
Fix asan error from storing Eigen temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Jul 15, 2023
1 parent 9ba903d commit 718b4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpimath/src/main/native/cpp/spline/SplineHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ std::vector<QuinticHermiteSpline> SplineHelper::OptimizeCurvature(
Trim(bFinal.y)};

// Calculate the second derivatives at the knot points.
frc::Matrixd<4, 1> bases{1.0, 1.0, 1.0, 1.0};
auto combinedA = ca.Coefficients() * bases;
frc::Vectord<4> bases{1.0, 1.0, 1.0, 1.0};
frc::Vectord<6> combinedA = ca.Coefficients() * bases;

double ddxA = combinedA(4);
double ddyA = combinedA(5);
Expand Down

0 comments on commit 718b4df

Please sign in to comment.