added ROTATION_PITCH_90_ROLL_270

This commit is contained in:
Andreas Antener
2016-05-06 10:45:49 +02:00
committed by Lorenz Meier
parent c31c29097d
commit 3b88937594
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -249,5 +249,11 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
z = -0.932324f * tmpx + 0.361625f * tmpy + 0.000000f * tmpz;
return;
}
case ROTATION_PITCH_90_ROLL_270: {
tmp = x; x = -y;
y = z; z = -tmp;
return;
}
}
}
+2
View File
@@ -79,6 +79,7 @@ enum Rotation {
ROTATION_PITCH_90_YAW_180 = 28,
ROTATION_PITCH_90_ROLL_90 = 29,
ROTATION_YAW_293_PITCH_68_ROLL_90 = 30,
ROTATION_PITCH_90_ROLL_270 = 31,
ROTATION_MAX
};
@@ -120,6 +121,7 @@ const rot_lookup_t rot_lookup[] = {
{ 0, 90, 180 },
{ 90, 90, 0 },
{ 90, 68, 293 },
{270, 90, 0 },
};
/**