Osman Kamerić / MPU6050_SIM5320_TEST

Fork of MPU6050 by Osman Kamerić

Revision:
3:b21c8c3456be
Parent:
2:e2081d9de7af
--- a/MPU6050.cpp	Wed Feb 01 11:09:14 2017 +0000
+++ b/MPU6050.cpp	Tue Aug 01 15:03:01 2017 +0000
@@ -62,9 +62,9 @@
 float aRes;
 float gRes;
 int Ascale = AFS_2G;
-float ax,ay,az;
-float gx,gy,gz;
-#define useDebugSerial
+int16_t ax,ay,az;
+int16_t gx,gy,gz;
+//#define useDebugSerial
 
 //instead of using pgmspace.h
 typedef const unsigned char prog_uchar;
@@ -74,7 +74,7 @@
 /** Default constructor, uses default I2C address.
  * @see MPU6050_DEFAULT_ADDRESS
  */
-MPU6050::MPU6050() : debugSerial(p30, p31)
+MPU6050::MPU6050()
 {
     devAddr = MPU6050_DEFAULT_ADDRESS;
 }
@@ -85,7 +85,7 @@
  * @see MPU6050_ADDRESS_AD0_LOW
  * @see MPU6050_ADDRESS_AD0_HIGH
  */
-MPU6050::MPU6050(uint8_t address) : debugSerial(p30, p31)
+MPU6050::MPU6050(uint8_t address)
 {
     devAddr = address;
 }
@@ -138,6 +138,7 @@
     setFullScaleGyroRange(MPU6050_GYRO_FS_250);
     setFullScaleAccelRange(MPU6050_ACCEL_FS_2);
     setSleepEnabled(false); // thanks to Jack Elston for pointing this one out!
+    
 
 #ifdef useDebugSerial
     debugSerial.printf("MPU6050::initialize end\n");