Skip to content

Commit

Permalink
delete ROTATION_YAW_293_PITCH_68_ROLL_90 as usage implies it is the s…
Browse files Browse the repository at this point in the history
…ame as ROTATION_ROLL_90_PITCH_68_YAW_293
  • Loading branch information
baumanta authored and dagar committed May 2, 2020
1 parent 38a6304 commit 200d905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
10 changes: 0 additions & 10 deletions src/lib/conversion/rotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,16 +249,6 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
return;
}

case ROTATION_YAW_293_PITCH_68_ROLL_90: {
const float tmpx = x;
const float tmpy = y;
const float tmpz = z;
x = -0.390731f * tmpy - 0.920505f * tmpz;
y = 0.374607f * tmpx - 0.853477f * tmpy + 0.362280f * tmpz;
z = -0.927184f * tmpx - 0.344827f * tmpy + 0.146371f * tmpz;
return;
}

case ROTATION_PITCH_9_YAW_180: {
const float tmpx = x;
const float tmpy = y;
Expand Down
6 changes: 2 additions & 4 deletions src/lib/conversion/rotation.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ enum Rotation {
ROTATION_ROLL_270_YAW_180 = 41,
ROTATION_ROLL_270_YAW_270 = 42,
ROTATION_PITCH_90_YAW_180 = 43,
ROTATION_YAW_293_PITCH_68_ROLL_90 = 44,
ROTATION_PITCH_9_YAW_180 = 45,
ROTATION_PITCH_45 = 46,
ROTATION_PITCH_9_YAW_180 = 44,
ROTATION_PITCH_45 = 45,
ROTATION_MAX
};

Expand Down Expand Up @@ -150,7 +149,6 @@ const rot_lookup_t rot_lookup[] = {
{270, 0, 180 },
{270, 0, 270 },
{ 0, 90, 180 },
{293, 68, 90 },
{ 0, 9, 180 },
{ 0, 45, 0 },
};
Expand Down

0 comments on commit 200d905

Please sign in to comment.