X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altoslib%2FAltosRotation.java;h=c4b07f623b465ef8bd354af14e099c0f48848a33;hb=master;hp=7bcea4874095e4d8c83610ffc23c71b07e4dfc5e;hpb=528fdc4e03466430c8d81fc78c90d3c9e8465ca7;p=fw%2Faltos diff --git a/altoslib/AltosRotation.java b/altoslib/AltosRotation.java index 7bcea487..85e213b2 100644 --- a/altoslib/AltosRotation.java +++ b/altoslib/AltosRotation.java @@ -97,7 +97,7 @@ public class AltosRotation extends AltosQuaternion { double z, int pad_orientation) { AltosQuaternion orient = AltosQuaternion.vector(x, y, z).normalize(); - double sky = pad_orientation == 0 ? 1 : -1; + double sky = (pad_orientation & 1) == 0 ? 1 : -1; AltosQuaternion up = new AltosQuaternion(0, 0, 0, sky); rotation = up.vectors_to_rotation(orient); }