Skip to content

Commit

Permalink
fixed a multiplication issue in Body2Global
Browse files Browse the repository at this point in the history
  • Loading branch information
sh1shir committed Dec 18, 2024
1 parent c1026c8 commit bc66d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MIDAS/src/gnc/yessir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Eigen::Matrix<float, 3, 1> Yessir::BodyToGlobal(euler_t angles, Eigen::Matrix<fl
roll << 1., 0., 0., 0., cos(angles.roll), -sin(angles.roll), 0., sin(angles.roll), cos(angles.roll);
pitch << cos(angles.pitch), 0., sin(angles.pitch), 0., 1., 0., -sin(angles.pitch), 0., cos(angles.pitch);
yaw << cos(angles.yaw), -sin(angles.yaw), 0., sin(angles.yaw), cos(angles.yaw), 0., 0., 0., 1.;
return yaw * pitch * body_vect;
return yaw * pitch * roll * body_vect;
}


Expand Down

0 comments on commit bc66d7f

Please sign in to comment.