Skip to content

Commit

Permalink
Don't use MakeMatrix()
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Jul 15, 2023
1 parent 51487a5 commit 9ba903d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wpimath/src/main/native/cpp/spline/SplineHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#include <cstddef>

#include "frc/StateSpaceUtil.h"

using namespace frc;

std::vector<CubicHermiteSpline> SplineHelper::CubicSplinesFromControlVectors(
Expand Down Expand Up @@ -212,7 +210,7 @@ std::vector<QuinticHermiteSpline> SplineHelper::OptimizeCurvature(
Trim(bFinal.y)};

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

double ddxA = combinedA(4);
Expand Down

0 comments on commit 9ba903d

Please sign in to comment.