Skip to content

Commit

Permalink
rotation conversion: deconfuse roll 90 yaw 90
Browse files Browse the repository at this point in the history
  • Loading branch information
MaEtUgR authored and bresch committed Apr 29, 2020
1 parent dfa5ca1 commit 81e576b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/conversion/rotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
}

case ROTATION_ROLL_90_YAW_90: {
tmp = z; z = y; y = -tmp;
tmp = x; x = -y; y = tmp;
tmp = x;
x = z;
z = y;
y = tmp;
return;
}

Expand Down

0 comments on commit 81e576b

Please sign in to comment.