Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Take const function parameter by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Jun 19, 2024
1 parent 6ee430f commit 73de922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/optimization/SwerveTrajoptUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void ApplyKinematicsConstraints(
const std::vector<Expr>& vy, const std::vector<Expr>& omega,
const std::vector<Expr>& ax, const std::vector<Expr>& ay,
const std::vector<Expr>& alpha, const std::vector<Expr>& dt,
const std::vector<size_t> N);
const std::vector<size_t>& N);

/**
* Applies the drivetrain-specific constraints to the optimizer. These
Expand Down
2 changes: 1 addition & 1 deletion src/optimization/SwerveTrajoptUtil.inc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void ApplyKinematicsConstraints(
const std::vector<Expr>& vy, const std::vector<Expr>& omega,
const std::vector<Expr>& ax, const std::vector<Expr>& ay,
const std::vector<Expr>& alpha, const std::vector<Expr>& dt,
const std::vector<size_t> N) {
const std::vector<size_t>& N) {
size_t wptCnt = N.size() + 1;

for (size_t wptIdx = 1; wptIdx < wptCnt; ++wptIdx) {
Expand Down

0 comments on commit 73de922

Please sign in to comment.