A quick implementation of Quaternion and Vector classes for use with my MPU9150 library

Dependents:   cool_step_new cool_step_1 SML2

Fork of QuaternionMath by Chris Pepper

Revision:
1:857642c51139
Parent:
0:3cc1a808d8c6
Child:
3:c0137be74db4
--- a/Quaternion.h	Mon Sep 01 13:48:26 2014 +0000
+++ b/Quaternion.h	Tue Feb 24 10:05:29 2015 +0000
@@ -3,6 +3,8 @@
 
 #include "Vector3.h"
 
+const static float PI = 3.1415926;
+
 class Quaternion {
 public:
     Quaternion() {
@@ -132,7 +134,7 @@
         }      
     }
     
-    const Vector3 getEulerAngles(){
+    const Vector3 getEulerAngles() const {
         double sqw = w*w;
         double sqx = v.x*v.x;
         double sqy = v.y*v.y;