forked

Fork of MPU9250_SPI by Mu kylong

Revision:
3:f4fa24cc247d
Parent:
2:f274ea3bced9
Child:
4:79185409730f
diff -r f274ea3bced9 -r f4fa24cc247d MPU9250.h
--- a/MPU9250.h	Sat Jun 21 12:39:55 2014 +0000
+++ b/MPU9250.h	Wed Jun 25 15:41:05 2014 +0000
@@ -53,12 +53,12 @@
     void ReadRegs( uint8_t ReadAddr, uint8_t *ReadBuf, unsigned int Bytes );
 
     bool init(int sample_rate_div,int low_pass_filter);
+    void read_temp();
     void read_acc();
     void read_rot();
     unsigned int set_gyro_scale(int scale);
     unsigned int set_acc_scale(int scale);
     void calib_acc();
-    float read_temp();
     void select();
     void deselect();
     unsigned int whoami();
@@ -67,6 +67,7 @@
     float gyro_divider;
     
     int calib_data[3];
+    float Temperature;
     float gyroscope_data[3];
     float accelerometer_data[3];