altoslib: Get rid of manual JSON encoding stuff
[fw/altos] / altoslib / AltosRotation.java
index e53a3a49d46a65e95af505ff90989f2f51fb09ae..97cf78967921f8bb10bc1c0d45bb8c7bc0969345 100644 (file)
@@ -15,9 +15,9 @@
  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  */
 
-package org.altusmetrum.altoslib_10;
+package org.altusmetrum.altoslib_11;
 
-public class AltosRotation {
+public class AltosRotation extends AltosQuaternion {
        private AltosQuaternion         rotation;
 
        public double tilt() {
@@ -47,4 +47,8 @@ public class AltosRotation {
                AltosQuaternion up = new AltosQuaternion(0, 0, 0, sky);
                rotation = up.vectors_to_rotation(orient);
        }
+
+       public AltosRotation() {
+               rotation = new AltosQuaternion();
+       }
 }