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

Commit

Permalink
Update src/optimization/algorithms/SwerveDiscreteOptimal.inc
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Veness <[email protected]>
  • Loading branch information
shueja and calcmogul authored Jun 19, 2024
1 parent fb13db0 commit 0cae6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/optimization/algorithms/SwerveDiscreteOptimal.inc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SwerveDiscreteOptimal<Expr, Opti>::SwerveDiscreteOptimal(
const SwervePath& path, const std::vector<size_t>& N,
const Solution& initialGuess, int64_t handle)
: path(path), N(N) {
opti.AddIntermediateCallback([=, this]() {
opti.AddIntermediateCallback([=, this] {
using namespace std::chrono_literals;
static auto lastFrameTime = std::chrono::steady_clock::now();
auto now = std::chrono::steady_clock::now();
Expand Down

0 comments on commit 0cae6a6

Please sign in to comment.