Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
Fix implicit this capture warning (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Sep 21, 2023
1 parent 45729ee commit f39f09e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sysid-application/src/main/native/cpp/analysis/ArmSim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ ArmSim::ArmSim(double Ks, double Kv, double Ka, double Kg, double offset,

void ArmSim::Update(units::volt_t voltage, units::second_t dt) {
// Returns arm acceleration under gravity
auto f = [=](const Eigen::Vector<double, 2>& x,
auto f = [=, this](
const Eigen::Vector<double, 2>& x,
const Eigen::Vector<double, 1>& u) -> Eigen::Vector<double, 2> {
return Eigen::Vector<double, 2>{
x(1), (m_A * x.block<1, 1>(1, 0) + m_B * u + m_c * wpi::sgn(x(1)) +
Expand Down

0 comments on commit f39f09e

Please sign in to comment.