Prosper Van / Mbed 2 deprecated quadCommand2

Dependencies:   mbed DCM_AHRS_GY80 PID MMA8451Q

Fork of quadCommand by Greg Abdo

Revision:
9:9e0d0ba5b6b1
Parent:
4:ce6ad16337c5
Child:
11:a80e854955dc
--- a/quadCommand/sensorS/sensors.cpp	Sun Jun 09 23:36:31 2013 +0000
+++ b/quadCommand/sensorS/sensors.cpp	Sun Jun 09 23:56:44 2013 +0000
@@ -4,17 +4,31 @@
 
 #include "sensors.h"
 
+/***************************** sensors() *********************************/
+/*                                                                       */
+/*************************************************************************/
+
 sensors::sensors()
 {
      acc = new MMA8451Q( ACCSDA, ACCSCL, MMA8451_I2C_ADDRESS);
 }
 
+/************************** getAbsoluteX() *******************************/
+/* Returns a float from -1 to 1 for the value off level in the x         */
+/*directoin. 0 = level.                                                  */
+/*************************************************************************/
+
 float sensors::getAbsoluteX()
 {
-    return (acc->getAccX();
+    return acc->getAccX();
 } 
 
+/************************** getAbsoluteY() *******************************/
+/* Returns a float from -1 to 1 for the value off level in the Y         */
+/*directoin. 0 = level.                                                  */
+/*************************************************************************/
+
 float sensors::getAbsoluteY()
 {
-    return (acc->getAccY();
+    return acc->getAccY();
 } 
\ No newline at end of file