Skip to content
Snippets Groups Projects
Commit 3d0457ff authored by Alberto Nidasio's avatar Alberto Nidasio
Browse files

[CI/CD] Fixed cppcheck errors

parent 5c292a14
Branches
Tags gh-5258
No related merge requests found
...@@ -36,6 +36,7 @@ void StateInitializer::eCompass(const Eigen::Vector3f acc, ...@@ -36,6 +36,7 @@ void StateInitializer::eCompass(const Eigen::Vector3f acc,
Eigen::Vector3f am(acc.cross(mag)); Eigen::Vector3f am(acc.cross(mag));
Eigen::Matrix3f R; Eigen::Matrix3f R;
// cppcheck-suppress constStatement
R << am.cross(acc), am, acc; R << am.cross(acc), am, acc;
R.col(0).normalize(); R.col(0).normalize();
R.col(1).normalize(); R.col(1).normalize();
...@@ -68,8 +69,10 @@ void StateInitializer::triad(Eigen::Vector3f& acc, Eigen::Vector3f& mag, ...@@ -68,8 +69,10 @@ void StateInitializer::triad(Eigen::Vector3f& acc, Eigen::Vector3f& mag,
// Compose the reference and measured matrixes // Compose the reference and measured matrixes
Eigen::Matrix3f M; Eigen::Matrix3f M;
// cppcheck-suppress constStatement
M << R1, R2, R3; M << R1, R2, R3;
Eigen::Matrix3f m; Eigen::Matrix3f m;
// cppcheck-suppress constStatement
m << r1, r2, r3; m << r1, r2, r3;
// Compute the rotation matrix and the corresponding quaternion // Compute the rotation matrix and the corresponding quaternion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment