Skip to content

Commit

Permalink
[DLG] Minichange in ea2rotmat
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolodares committed Apr 17, 2024
1 parent 0419628 commit e988345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lion/frame/rotations.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ constexpr Matrix3x3Type ea2rotmat(const T &yaw_rad, const T &pitch_rad, const T
const auto cyaw = cos(yaw_rad);
const auto syaw = sin(yaw_rad);
const auto cpitch = cos(pitch_rad);
const auto stheta = sin(pitch_rad);
const auto spitch = sin(pitch_rad);
const auto croll = cos(roll_rad);
const auto sroll = sin(roll_rad);

return Matrix3x3Type{
cpitch * cyaw, sroll * stheta * cyaw - syaw * croll, croll * cyaw * stheta + sroll * syaw,
cpitch * syaw, sroll * stheta * syaw + cyaw * croll, croll * syaw * stheta - sroll * cyaw,
-stheta, sroll * cpitch, croll * cpitch };
cpitch * cyaw, sroll * spitch * cyaw - syaw * croll, croll * cyaw * spitch + sroll * syaw,
cpitch * syaw, sroll * spitch * syaw + cyaw * croll, croll * syaw * spitch - sroll * cyaw,
-spitch, sroll * cpitch, croll * cpitch };
}


Expand Down

0 comments on commit e988345

Please sign in to comment.