Browse Source

rotation conversion: deconfuse roll 90 yaw 90

sbg
Matthias Grob 5 years ago committed by Mathieu Bresciani
parent
commit
81e576b63a
  1. 6
      src/lib/conversion/rotation.cpp

6
src/lib/conversion/rotation.cpp

@ -173,8 +173,10 @@ rotate_3f(enum Rotation rot, float &x, float &y, float &z) @@ -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;
}

Loading…
Cancel
Save