rotation conversion: deconfuse roll 90 yaw 90

This commit is contained in:
Matthias Grob
2020-04-28 10:50:56 +02:00
committed by Mathieu Bresciani
parent dfa5ca1710
commit 81e576b63a
+4 -2
View File
@@ -173,8 +173,10 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z)
} }
case ROTATION_ROLL_90_YAW_90: { case ROTATION_ROLL_90_YAW_90: {
tmp = z; z = y; y = -tmp; tmp = x;
tmp = x; x = -y; y = tmp; x = z;
z = y;
y = tmp;
return; return;
} }