Prosper Van / Mbed 2 deprecated quadCommand2

Dependencies:   mbed DCM_AHRS_GY80 PID MMA8451Q

Fork of quadCommand by Greg Abdo

Revision:
4:ce6ad16337c5
Parent:
1:9b90e7de6e09
Child:
9:9e0d0ba5b6b1
--- a/quadCommand/sensorS/sensors.cpp	Sun Jun 09 22:33:11 2013 +0000
+++ b/quadCommand/sensorS/sensors.cpp	Sun Jun 09 22:59:11 2013 +0000
@@ -9,12 +9,12 @@
      acc = new MMA8451Q( ACCSDA, ACCSCL, MMA8451_I2C_ADDRESS);
 }
 
-short sensors::getAbsoluteX()
+float sensors::getAbsoluteX()
 {
-    return (short)(acc->getAccX() * 10);
+    return (acc->getAccX();
 } 
 
-short sensors::getAbsoluteY()
+float sensors::getAbsoluteY()
 {
-    return (short)(acc->getAccY() * 10);
+    return (acc->getAccY();
 } 
\ No newline at end of file