Skip to content
Snippets Groups Projects
Commit 2d9d803e authored by Emilio Corigliano's avatar Emilio Corigliano Committed by Matteo Pignataro
Browse files

[StateInitializer] Wrong calculus in the computation of the rotation matrix

parent 43bf8b0b
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ void StateInitializer::triad(const Vector3f& acc, const Vector3f& mag,
m << r1, r2, r3;
// Compute the rotation matrix and the corresponding quaternion
Matrix3f A = M * m.transpose();
Matrix3f A = m * M.transpose();
Vector4f q = SkyQuaternion::rotationMatrix2quat(A);
// Save the orientation in the state
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment