Browse Source

delete ROTATION_YAW_293_PITCH_68_ROLL_90 as usage implies it is the same as ROTATION_ROLL_90_PITCH_68_YAW_293

sbg
baumanta 5 years ago committed by Daniel Agar
parent
commit
200d905b63
  1. 10
      src/lib/conversion/rotation.cpp
  2. 6
      src/lib/conversion/rotation.h

10
src/lib/conversion/rotation.cpp

@ -249,16 +249,6 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z) @@ -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;

6
src/lib/conversion/rotation.h

@ -93,9 +93,8 @@ enum Rotation { @@ -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
};
@ -150,7 +149,6 @@ const rot_lookup_t rot_lookup[] = { @@ -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 },
};

Loading…
Cancel
Save