read acceleration and angler ratio from mpu6050 and estimate pitch and roll angle

Dependencies:   mbed

Revision:
3:40559ebef0f1
Parent:
2:4a6b46653abf
diff -r 4a6b46653abf -r 40559ebef0f1 Vector.cpp
--- a/Vector.cpp	Mon Apr 20 14:54:55 2015 +0000
+++ b/Vector.cpp	Wed May 13 04:02:27 2015 +0000
@@ -85,7 +85,7 @@
     return sqrt(norm);
 }
 
-Vector Vector::GetUnit() const {
+Vector Vector::Normalize() const {
     float norm = GetNorm();
     Vector temp(*this);
     for (int i = 0; i < dim; i++) {