Skip to content

Commit

Permalink
fix: workspace settings
Browse files Browse the repository at this point in the history
  • Loading branch information
iftahnaf committed Jan 13, 2024
1 parent 818b61d commit 12d9225
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@
"typeinfo": "cpp",
"dense": "cpp",
"polynomials": "cpp"
}
},
"cSpell.words": [
"Eigen"
]
}
2 changes: 1 addition & 1 deletion src/soft_landing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ double SoftLanding::soft_landing_tgo_lq(const Eigen::Vector3d r, const Eigen::Ve
}

Eigen::Vector3d SoftLanding::soft_landing_controller_lq(const Eigen::Vector3d r, const Eigen::Vector3d v, double tgo){
Eigen::Vector3d u = (1 / (pow(tgo, 2))) * (6.0*r + 4.0*tgo*v) + this->gravity;
Eigen::Vector3d u = (1.0 / (pow(tgo, 2))) * (6.0*r + 4.0*tgo*v) + this->gravity;
return u;
}

0 comments on commit 12d9225

Please sign in to comment.