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

Take const function parameter by reference #180

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading